<template>
  <div id="recruitTableJH">
    <el-dialog title="修改最近三年的开始年度" :visible.sync="yearFormVisible" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="yearForm" ref="yearForm" :inline="true" inline-message>
        <el-form-item prop="yearForm">
          <el-select v-model="yearForm.startYear">
            <el-option v-for="(item,index) in yearList" :key="'year'+index" :value="item" :label="item" />
          </el-select>
          <el-button type="primary" @click.native="setStartYear()" :loading="btnLoading">提交</el-button>
        </el-form-item>
      </el-form>
    </el-dialog>
    <el-dialog title="导入失败原因" :visible.sync="errorVisible" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-table :data="errorList" highlight-current-row>
        <el-table-column prop="index" label="错误序号" width="120" align="center">
        </el-table-column>
        <el-table-column prop="error" label="原因" min-width="150">
        </el-table-column>
      </el-table>
    </el-dialog>
    <!-- <el-button v-if="canEdit" style="float:right" icon="el-icon-setting" type="primary" @click="editStartYear()">修改最近三年的开始年度</el-button> -->
    <template>
      <div v-if="state===5" style="margin-bottom:10px;font-weight:bolder">状态：已退回  退回原因：{{remarks?remarks:'无'}}</div>
      <div v-if="state===0&&userType===2" style="padding:20px; font-size:14px;color:#999;text-align:center">暂无数据</div>
      <el-button icon="el-icon-s-promotion" type="success" style="margin-bottom:20px" @click="setState(1)" v-if="userType===1&&(state===0||state===5)" :loading='btnLoading'>提交</el-button>
      <el-button icon="el-icon-s-release" type="danger" style="margin-bottom:20px" v-if="userType===2&&state===1" @click="showBack()">退回</el-button>
    </template>
    <el-dialog title="退回原因" :visible.sync="backFormVisible" :close-on-click-modal="false" width="700px" :close-on-press-escape="false">
      <el-form :model="backForm" ref="backForm" :inline="true" inline-message>
        <el-form-item prop="remark">
          <el-input v-model="backForm.remark" style="width:600px"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="setState(5)" :loading="btnLoading">提交</el-button>
        <el-button @click.native="backFormVisible = false">取消</el-button>
      </div>
    </el-dialog>
    <el-dialog title="备注说明" :visible.sync="remarksFormVisible" :close-on-click-modal="false" width="700px" :close-on-press-escape="false">
      <el-input type="textarea" v-model="remarksContent" style="width:600px" maxlength="100" show-word-limit rows="3"></el-input>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="setRemarks()" :loading="btnLoading">提交</el-button>
        <el-button @click.native="remarksFormVisible = false">取消</el-button>
      </div>
    </el-dialog>
    <!-- 表2：应届毕业生招聘计划申报表 & 表3：在职人员招聘计划申报表 -->
    <el-dialog :title="dialogTitle" :visible.sync="editFormVisible1" width="98%" top="20px" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="editForm1" label-width="200px" ref="editForm1" :inline="true" style="padding:10px 0 0;clear:both" inline-message :rules="editFormRules1">
        <table cellspacing="0" cellpadding="0" class="mytable">
          <tr>
            <th colspan="3" style="width:120px; vertical-align: middle;">单位名称</th>
            <td colspan="11" style="vertical-align: middle;">
              <el-form-item prop="unitName">
                <el-input v-model="editForm1.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th colspan="3" style="width:120px; vertical-align: middle;">编制（员工控制数）</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="postNum">
                <el-input-number v-model="editForm1.postNum" :min="0" style="width: 136px;"/>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">其中领导班子职数</th>
            <td colspan="9" style="vertical-align: middle;">
              <el-form-item prop="leaderPostNum">
                <el-input-number v-model="editForm1.leaderPostNum" :min="0" style="width: 136px;"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th colspan="3" style="width:120px; vertical-align: middle;">现有人员数</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="personNum">
                <el-input-number v-model="editForm1.personNum" :min="0" style="width: 136px;"/>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">其中领导班子人数</th>
            <td colspan="9" style="vertical-align: middle;">
              <el-form-item prop="leaderPersonNum">
                <el-input-number v-model="editForm1.leaderPersonNum" :min="0" style="width: 136px;"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th colspan="3" style="width:120px; vertical-align: middle;">{{ remarksByYear }}</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="retireeNum">
                <el-input-number v-model="editForm1.retireeNum" :min="0" style="width: 136px;"/>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">其中领导班子人数</th>
            <td colspan="9" style="vertical-align: middle;">
              <el-form-item prop="leaderRetireeNum">
                <el-input-number v-model="editForm1.leaderRetireeNum" :min="0" style="width: 136px;"/>
              </el-form-item>
            </td>
          </tr>
          <template v-if='theType1===1&&unitBeijing1===1'>
            <tr>
              <th rowspan="2" style="width:270px; vertical-align: middle;">上一年度年实际接收情况</th>
              <th style="width:90px; vertical-align: middle;">京内生源</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYearBeijing1">
                  <el-input-number v-model="editForm1.countLastYearBeijing1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYearBeijing2">
                  <el-input-number v-model="editForm1.countLastYearBeijing2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYearBeijing3">
                  <el-input-number v-model="editForm1.countLastYearBeijing3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYearBeijing4">
                  <el-input-number v-model="editForm1.countLastYearBeijing4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYearBeijing5">
                  <el-input-number v-model="editForm1.countLastYearBeijing5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.countLastYearBeijing1 + editForm1.countLastYearBeijing2 + editForm1.countLastYearBeijing3 + editForm1.countLastYearBeijing4 + editForm1.countLastYearBeijing5}}人
              </td>
              <td rowspan="2" style="width:250px; vertical-align: middle;">京内生源比例：
                {{(editForm1.countLastYearBeijing1 + editForm1.countLastYearBeijing2 + editForm1.countLastYearBeijing3 + editForm1.countLastYearBeijing4 + editForm1.countLastYearBeijing5+editForm1.countLastYear1 + editForm1.countLastYear2 + editForm1.countLastYear3 + editForm1.countLastYear4 + editForm1.countLastYear5)?(100*(editForm1.countLastYearBeijing1 + editForm1.countLastYearBeijing2 + editForm1.countLastYearBeijing3 + editForm1.countLastYearBeijing4 + editForm1.countLastYearBeijing5)/(editForm1.countLastYearBeijing1 + editForm1.countLastYearBeijing2 + editForm1.countLastYearBeijing3 + editForm1.countLastYearBeijing4 + editForm1.countLastYearBeijing5+editForm1.countLastYear1 + editForm1.countLastYear2 + editForm1.countLastYear3 + editForm1.countLastYear4 + editForm1.countLastYear5)).toFixed(1):'0.0'}}%
              </td>
            </tr>
            <tr>
              <th style="width:90px; vertical-align: middle;">京外生源</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear1">
                  <el-input-number v-model="editForm1.countLastYear1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear2">
                  <el-input-number v-model="editForm1.countLastYear2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear3">
                  <el-input-number v-model="editForm1.countLastYear3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear4">
                  <el-input-number v-model="editForm1.countLastYear4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear5">
                  <el-input-number v-model="editForm1.countLastYear5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.countLastYear1 + editForm1.countLastYear2 + editForm1.countLastYear3 + editForm1.countLastYear4 + editForm1.countLastYear5}}人
              </td>
            </tr>
            <tr>
              <th rowspan="2" style="width:270px; vertical-align: middle;">本年度需求情况</th>
              <th style="width:90px; vertical-align: middle;">京内生源</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing1">
                  <el-input-number v-model="editForm1.countBeijing1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing2">
                  <el-input-number v-model="editForm1.countBeijing2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing3">
                  <el-input-number v-model="editForm1.countBeijing3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing4">
                  <el-input-number v-model="editForm1.countBeijing4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing5">
                  <el-input-number v-model="editForm1.countBeijing5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5}}人
              </td>
              <td rowspan="2" style="width:250px; vertical-align: middle;">京内生源比例：
                {{(editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5+editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5)?(100*(editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5)/(editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5+editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5)).toFixed(1):'0.0'}}%
              </td>
            </tr>
            <tr>
              <th style="width:90px; vertical-align: middle;">京外生源</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count1">
                  <el-input-number v-model="editForm1.count1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count2">
                  <el-input-number v-model="editForm1.count2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count3">
                  <el-input-number v-model="editForm1.count3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count4">
                  <el-input-number v-model="editForm1.count4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count5">
                  <el-input-number v-model="editForm1.count5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5}}人
              </td>
            </tr>
          </template>
          <template v-else-if='theType1===1&&unitBeijing1===2'>
            <tr>
              <th style="width:270px; vertical-align: middle;" colspan="2">上一年度年实际接收情况</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear1">
                  <el-input-number v-model="editForm1.countLastYear1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear2">
                  <el-input-number v-model="editForm1.countLastYear2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear3">
                  <el-input-number v-model="editForm1.countLastYear3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear4">
                  <el-input-number v-model="editForm1.countLastYear4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countLastYear5">
                  <el-input-number v-model="editForm1.countLastYear5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.countLastYear1 + editForm1.countLastYear2 + editForm1.countLastYear3 + editForm1.countLastYear4 + editForm1.countLastYear5}}人
              </td>
            </tr>
            <tr>
              <th style="width:270px; vertical-align: middle;" colspan="2">本年度需求情况</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count1">
                  <el-input-number v-model="editForm1.count1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count2">
                  <el-input-number v-model="editForm1.count2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count3">
                  <el-input-number v-model="editForm1.count3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count4">
                  <el-input-number v-model="editForm1.count4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count5">
                  <el-input-number v-model="editForm1.count5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5}}人
              </td>
            </tr>
          </template>
          <template v-else-if='theType1===2&&unitBeijing1===1'>
            <tr>
              <th rowspan="2" style="width:270px; vertical-align: middle;">本年度拟申报的应届毕业生招聘计划数</th>
              <th style="width:90px; vertical-align: middle;">京内生源</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing1">
                  <el-input-number v-model="editForm1.countBeijing1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing2">
                  <el-input-number v-model="editForm1.countBeijing2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing3">
                  <el-input-number v-model="editForm1.countBeijing3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing4">
                  <el-input-number v-model="editForm1.countBeijing4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="countBeijing5">
                  <el-input-number v-model="editForm1.countBeijing5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5}}人
              </td>
              <td rowspan="2" style="width:250px; vertical-align: middle;">京内生源比例：
                {{(editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5+editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5)?(100*(editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5)/(editForm1.countBeijing1 + editForm1.countBeijing2 + editForm1.countBeijing3 + editForm1.countBeijing4 + editForm1.countBeijing5+editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5)).toFixed(1):'0.0'}}%
              </td>
            </tr>
            <tr>
              <th style="width:90px; vertical-align: middle;">京外生源</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count1">
                  <el-input-number v-model="editForm1.count1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count2">
                  <el-input-number v-model="editForm1.count2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count3">
                  <el-input-number v-model="editForm1.count3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count4">
                  <el-input-number v-model="editForm1.count4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count5">
                  <el-input-number v-model="editForm1.count5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5}}人
              </td>
            </tr>
          </template>
          <template v-else-if='theType1===2&&unitBeijing1===2'>
            <tr>
              <th colspan="2" style="width:270px; vertical-align: middle;">本年度拟申报的应届毕业生招聘计划数</th>
              <th style="width:50px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count1">
                  <el-input-number v-model="editForm1.count1" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count2">
                  <el-input-number v-model="editForm1.count2" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">硕士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count3">
                  <el-input-number v-model="editForm1.count3" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士研究生</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count4">
                  <el-input-number v-model="editForm1.count4" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <th style="width:50px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;">
                <el-form-item prop="count5">
                  <el-input-number v-model="editForm1.count5" :min="0" style="width: 136px;"/>
                </el-form-item>
              </td>
              <td style="width:130px; vertical-align: middle;">
                小计：{{editForm1.count1 + editForm1.count2 + editForm1.count3 + editForm1.count4 + editForm1.count5}}人
              </td>
            </tr>
          </template>
          <tr v-if='theType1===2'>
            <th colspan="3">本年度在职招聘计划需求数</th>
            <td colspan="11">
                <el-form-item prop="personCount">
                  <el-input-number v-model="editForm1.personCount" :min="0" style="width: 136px;"/>
                </el-form-item>
            </td>
          </tr>
          <!-- <tr>
            <th colspan="3">备注</th>
            <td colspan="11">
              <el-input type="textarea" v-model="editForm1.remark" style="width:100%"></el-input>
            </td>
          </tr> -->
        </table>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="editFormSubmit1" :loading="editLoading">保存</el-button>
        <el-button @click.native="editFormVisible1 = false">取消</el-button>
      </div>
    </el-dialog>
    <!-- 表4：应届毕业生招聘工作情况统计表 -->
    <el-dialog :title="dialogTitle" :visible.sync="editFormVisible2" width="98%" top="20px" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="editForm2" label-width="100px" ref="editForm2" :inline="true" style="padding:10px 0 0;clear:both" inline-message :rules="editFormRules2">
        <table cellspacing="0" cellpadding="0" class="mytable">
          <tr>
            <th style="width:120px; vertical-align: middle;">单位名称</th>
            <td style="vertical-align: middle;" colspan="4">
              <el-form-item prop="unitName">
                <el-input v-model="editForm2.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
            <!-- <th style="width:120px; vertical-align: middle;">开始年度</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="title">
                <el-date-picker
                  v-model="startYear"
                  type="year"
                  placeholder="选择年">
                </el-date-picker>
              </el-form-item>
            </td> -->
          </tr>
          <tr>
            <th colspan="2" style="width:120px; vertical-align: middle;"></th>
            <th style="width:120px; vertical-align: middle; text-align:center">{{startYear}}年</th>
            <th style="width:120px; vertical-align: middle; text-align:center">{{parseInt(startYear)+1}}年</th>
            <th style="width:120px; vertical-align: middle; text-align:center">{{parseInt(startYear)+2}}年</th>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;" rowspan="3">毕业生留存情况</th>
            <th style="width:120px; vertical-align: middle;">实际接收落户人数</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count1">
                <el-input-number v-model="editForm2.count1" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count2">
                <el-input-number v-model="editForm2.count2" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count3">
                <el-input-number v-model="editForm2.count3" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">截至目前在岗人数</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="inPostCount1">
                <el-input-number v-model="editForm2.inPostCount1" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="inPostCount2">
                <el-input-number v-model="editForm2.inPostCount2" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="inPostCount3">
                <el-input-number v-model="editForm2.inPostCount3" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">留存率</th>
            <td style="vertical-align: middle;">{{editForm2.count1?(100*editForm2.inPostCount1/editForm2.count1).toFixed(1):'0.0'}}%</td>
            <td style="vertical-align: middle;">{{editForm2.count2?(100*editForm2.inPostCount2/editForm2.count2).toFixed(1):'0.0'}}%</td>
            <td style="vertical-align: middle;">{{editForm2.count3?(100*editForm2.inPostCount3/editForm2.count3).toFixed(1):'0.0'}}%</td>
          </tr>
          <tr>
            <th colspan="2" style="width:120px; vertical-align: middle;">制度建设情况（截至目前情况，请勾选）</th>
            <td colspan="3" style="vertical-align: middle;">
              <el-form-item prop="institutional">
                <el-checkbox-group v-model="editForm2.institutional">
                  <div v-for="(item, index) in institutionalOptions" :key="'institutional_' + index">
                    <el-checkbox :label="item"></el-checkbox>
                    <br />
                  </div>
                </el-checkbox-group>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th colspan="2" style="width:120px; vertical-align: middle;">毕业生招聘接收方式（截至目前情况，请勾选）</th>
            <td colspan="3" style="vertical-align: middle;">
              <el-form-item prop="receiveMode">
                <el-checkbox-group v-model="editForm2.receiveMode">
                  <div v-for="(item, index) in receiveModeOptions" :key="'receiveMode' + index">
                    <el-checkbox :label="item"></el-checkbox>
                    <br />
                  </div>
                </el-checkbox-group>
              </el-form-item>
              <div style="width:100%" />
              <el-form-item prop="receiveModeRemark" v-if="editForm2.receiveMode.includes('其他（请注明）')">
                <el-input style="width:500px" v-model="editForm2.receiveModeRemark"></el-input>
              </el-form-item>
            </td>
          </tr>
        </table>
        备注：1. 本表填写近三年应届毕业生招聘情况。<br>2. “毕业生留存情况”一栏的统计口径以办理接收落户的京外生源毕业生为范围；<br>3. 在岗情况应在逐一核对接收毕业生工资、社保等劳动关系手续基础上准确填报。
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="editFormSubmit2" :loading="editLoading">保存</el-button>
        <el-button @click.native="editFormVisible2 = false">取消</el-button>
      </div>
    </el-dialog>
    <!-- 表5：招聘应届毕业生留存情况表 -->
    <el-dialog :title="dialogTitle" :visible.sync="editFormVisible3" width="98%" top="20px" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="editForm3" label-width="200px" ref="editForm3" :inline="true" style="padding:10px 0 0;clear:both" inline-message :rules="editFormRules3">
        <table cellspacing="0" cellpadding="0" class="mytable">
          <tr>
            <th style="width:120px; vertical-align: middle;">单位名称</th>
            <td style="vertical-align: middle;" colspan="4">
              <el-form-item prop="unitName">
                <el-input v-model="editForm3.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th colspan="2" style="width:120px; vertical-align: middle;"></th>
            <th style="width:120px; vertical-align: middle; text-align:center">{{startYear}}年</th>
            <th style="width:120px; vertical-align: middle; text-align:center">{{parseInt(startYear)+1}}年</th>
            <th style="width:120px; vertical-align: middle; text-align:center">{{parseInt(startYear)+2}}年</th>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;" rowspan="5">实际接收人数</th>
            <th style="width:120px; vertical-align: middle;">专科</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count111">
                <el-input-number v-model="editForm3.count111" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count211">
                <el-input-number v-model="editForm3.count211" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count311">
                <el-input-number v-model="editForm3.count311" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">本科</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count112">
                <el-input-number v-model="editForm3.count112" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count212">
                <el-input-number v-model="editForm3.count212" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count312">
                <el-input-number v-model="editForm3.count312" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">硕士研究生</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count113">
                <el-input-number v-model="editForm3.count113" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count213">
                <el-input-number v-model="editForm3.count213" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count313">
                <el-input-number v-model="editForm3.count313" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">博士研究生</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count114">
                <el-input-number v-model="editForm3.count114" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count214">
                <el-input-number v-model="editForm3.count214" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count314">
                <el-input-number v-model="editForm3.count314" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">其他</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count115">
                <el-input-number v-model="editForm3.count115" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count215">
                <el-input-number v-model="editForm3.count215" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count315">
                <el-input-number v-model="editForm3.count315" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;" colspan="2">合计</th>
            <td style="vertical-align: middle;">{{editForm3.count111+editForm3.count112+editForm3.count113+editForm3.count114+editForm3.count115}}</td>
            <td style="vertical-align: middle;">{{editForm3.count211+editForm3.count212+editForm3.count213+editForm3.count214+editForm3.count215}}</td>
            <td style="vertical-align: middle;">{{editForm3.count311+editForm3.count312+editForm3.count313+editForm3.count314+editForm3.count315}}</td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;" rowspan="5">目前在岗人数</th>
            <th style="width:120px; vertical-align: middle;">专科</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count121">
                <el-input-number v-model="editForm3.count121" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count221">
                <el-input-number v-model="editForm3.count221" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count321">
                <el-input-number v-model="editForm3.count321" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">本科</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count122">
                <el-input-number v-model="editForm3.count122" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count222">
                <el-input-number v-model="editForm3.count222" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count322">
                <el-input-number v-model="editForm3.count322" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">硕士研究生</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count123">
                <el-input-number v-model="editForm3.count123" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count223">
                <el-input-number v-model="editForm3.count223" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count323">
                <el-input-number v-model="editForm3.count323" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">博士研究生</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count124">
                <el-input-number v-model="editForm3.count124" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count224">
                <el-input-number v-model="editForm3.count224" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count324">
                <el-input-number v-model="editForm3.count324" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">其他</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="count125">
                <el-input-number v-model="editForm3.count125" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count225">
                <el-input-number v-model="editForm3.count225" :min="0"/>
              </el-form-item>
            </td>
            <td style="vertical-align: middle;">
              <el-form-item prop="count325">
                <el-input-number v-model="editForm3.count325" :min="0"/>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;" colspan="2">合计</th>
            <td style="vertical-align: middle;">{{editForm3.count121+editForm3.count122+editForm3.count123+editForm3.count124+editForm3.count125}}</td>
            <td style="vertical-align: middle;">{{editForm3.count221+editForm3.count222+editForm3.count223+editForm3.count224+editForm3.count225}}</td>
            <td style="vertical-align: middle;">{{editForm3.count321+editForm3.count322+editForm3.count323+editForm3.count324+editForm3.count325}}</td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;" colspan="2">留存率</th>
            <td style="vertical-align: middle;">{{(editForm3.count111+editForm3.count112+editForm3.count113+editForm3.count114+editForm3.count115)?((editForm3.count121+editForm3.count122+editForm3.count123+editForm3.count124+editForm3.count125)*100/(editForm3.count111+editForm3.count112+editForm3.count113+editForm3.count114+editForm3.count115)).toFixed(1):'0.0'}}%</td>
            <td style="vertical-align: middle;">{{(editForm3.count211+editForm3.count212+editForm3.count213+editForm3.count214+editForm3.count215)?((editForm3.count221+editForm3.count222+editForm3.count223+editForm3.count224+editForm3.count225)*100/(editForm3.count211+editForm3.count212+editForm3.count213+editForm3.count214+editForm3.count215)).toFixed(1):'0.0'}}%</td>
            <td style="vertical-align: middle;">{{(editForm3.count311+editForm3.count312+editForm3.count313+editForm3.count314+editForm3.count315)?((editForm3.count321+editForm3.count322+editForm3.count323+editForm3.count324+editForm3.count325)*100/(editForm3.count311+editForm3.count312+editForm3.count313+editForm3.count314+editForm3.count315)).toFixed(1):'0.0'}}%</td>
          </tr>
        </table>
        备注：1. 本表填写近三年应届毕业生招聘及留存情况。<br>2. 本表填写接收的所有毕业生情况，含京内生源和京外生源；<br>3. 留存率＝目前在岗人数合计／实际接收人数合计，保留到小数点后１位。
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="editFormSubmit3" :loading="editLoading">保存</el-button>
        <el-button @click.native="editFormVisible3 = false">取消</el-button>
      </div>
    </el-dialog>
    <!-- 表6：招聘应届毕业生情况明细表 -->
    <el-dialog :title="dialogTitle" :visible.sync="editFormVisible4" width="98%" top="20px" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="editForm4" label-width="200px" ref="editForm4" :inline="true" style="padding:10px 0 0;clear:both" inline-message :rules="editFormRules4">
        <table cellspacing="0" cellpadding="0" class="mytable">
          <tr>
            <th style="width:120px; vertical-align: middle;">单位名称</th>
            <td style="vertical-align: middle;" colspan="5">
              <el-form-item prop="unitName">
                <el-input v-model="editForm4.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">接收年份</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="receiveYear">
                <el-select v-model="editForm4.receiveYear">
                  <el-option v-for="(item,index) in yearList2" :key="'year'+index" :value="item" :label="item" />
                </el-select>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">部门名称</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="department">
                <el-input v-model="editForm4.department" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">工作岗位<br>（职位）</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="post">
                <el-input v-model="editForm4.post" style="width:200px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">姓名</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="realName">
                <el-input v-model="editForm4.realName" style="width:100px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">身份证号</th>
            <td style="vertical-align: middle;" :colspan="unitBeijing4===1?1:3">
              <el-form-item prop="idCardNo">
                <el-input v-model="editForm4.idCardNo" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;" v-if="unitBeijing4===1">生源类型</th>
            <td style="vertical-align: middle;" v-if="unitBeijing4===1">
              <el-form-item prop="inBeijing">
                <el-radio-group v-model="editForm4.inBeijing">
                  <el-radio :label="1">京内生源</el-radio>
                  <el-radio :label="2">京外生源</el-radio>
                </el-radio-group>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">院校</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="school">
                <el-input v-model="editForm4.school" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">所学专业</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="major">
                <el-input v-model="editForm4.major" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">是否在岗</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="inPost">
                <el-radio-group v-model="editForm4.inPost">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="0">否</el-radio>
                </el-radio-group>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">备注</th>
            <td style="vertical-align: middle;" colspan="5">
              <el-form-item prop="remark">
                <el-input v-model="editForm4.remark" style="width:800px"></el-input>
              </el-form-item>
            </td>
          </tr>
        </table>
       </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="editFormSubmit4" :loading="editLoading">保存</el-button>
        <el-button @click.native="editFormVisible4 = false">取消</el-button>
      </div>
    </el-dialog>
    <!-- 表1：岗位需求信息表（前两个） -->
    <el-dialog :title="dialogTitle" :visible.sync="editFormVisible5" width="98%" top="20px" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="editForm5" label-width="200px" ref="editForm5" :inline="true" style="padding:10px 0 0;clear:both" inline-message :rules="editFormRules5">
        <table cellspacing="0" cellpadding="0" class="mytable">
          <tr>
            <th style="width:120px; vertical-align: middle;">单位名称</th>
            <td style="vertical-align: middle;" :colspan="unitBeijing5===1?2:1">
              <el-form-item prop="unitName">
                <el-input v-model="editForm5.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">具体工作部门</th>
            <td style="vertical-align: middle;" :colspan="unitBeijing5===1?3:1">
              <el-form-item prop="department">
                <el-input v-model="editForm5.department" style="width:200px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">岗位</th>
            <td style="vertical-align: middle;" :colspan="unitBeijing5===1?2:1">
              <el-form-item prop="post">
                <el-input v-model="editForm5.post" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">专业</th>
            <td style="vertical-align: middle;" :colspan="unitBeijing5===1?3:1">
              <el-form-item prop="major">
                <el-input v-model="editForm5.major" style="width:500px" :maxlength="500" show-word-limit></el-input>
              </el-form-item>
              <div>
                填写要求：专业可以填写专业大类、专业中类或具体专业名称，专业名称后括号中写对应的专业代码，多个专业之间用“;”隔开，最后一个专业后面不需要“;”。<br>
                示例：<b>法学(03);文学(05);管理学(12);信息与通信工程(0810);中国语言与文化(050108T);电子与计算机工程(080909T);网络空间安全(080911TK)</b>
              </div>
            </td>
          </tr>
          <template v-if="unitBeijing5===1">
            <tr>
              <th style="width:120px; vertical-align: middle;"></th>
              <th style="width:120px; vertical-align: middle; text-align:left">大专</th>
              <th style="width:120px; vertical-align: middle; text-align:left">本科生</th>
              <th style="width:120px; vertical-align: middle; text-align:left">硕士研究生</th>
              <th style="width:120px; vertical-align: middle; text-align:left">博士研究生</th>
              <th style="width:120px; vertical-align: middle; text-align:left">其他</th>
              <th style="width:120px; vertical-align: middle; text-align:left">合计</th>
            </tr>
            <tr>
              <th style="width:120px; vertical-align: middle;">京内生源</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="countBeijing1">
                  <el-input-number v-model="editForm5.countBeijing1"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="countBeijing2">
                  <el-input-number v-model="editForm5.countBeijing2"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="countBeijing3">
                  <el-input-number v-model="editForm5.countBeijing3"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="countBeijing4">
                  <el-input-number v-model="editForm5.countBeijing4"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="countBeijing5">
                  <el-input-number v-model="editForm5.countBeijing5"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">{{editForm5.countBeijing1+editForm5.countBeijing2+editForm5.countBeijing3+editForm5.countBeijing4+editForm5.countBeijing5}}</td>
            </tr>
            <tr>
              <th style="width:120px; vertical-align: middle;">京外生源</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count1">
                  <el-input-number v-model="editForm5.count1"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count2">
                  <el-input-number v-model="editForm5.count2"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count3">
                  <el-input-number v-model="editForm5.count3"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count4">
                  <el-input-number v-model="editForm5.count4"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count5">
                  <el-input-number v-model="editForm5.count5"  :min="0"/>
                </el-form-item>
              </td>
              <td style="vertical-align: middle;" colspan="1">{{editForm5.count1+editForm5.count2+editForm5.count3+editForm5.count4+editForm5.count5}}</td>
            </tr>
          </template>
          <template v-else>
            <tr>
              <th style="width:120px; vertical-align: middle;">大专</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count1">
                  <el-input-number v-model="editForm5.count1"  :min="0"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">本科生</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count2">
                  <el-input-number v-model="editForm5.count2"  :min="0"/>
                </el-form-item>
              </td>
            </tr>
            <tr>
              <th style="width:120px; vertical-align: middle;">硕士生</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count3">
                  <el-input-number v-model="editForm5.count3"  :min="0"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">博士生</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count4">
                  <el-input-number v-model="editForm5.count4"  :min="0"/>
                </el-form-item>
              </td>
            </tr>
            <tr>
              <th style="width:120px; vertical-align: middle;">其他</th>
              <td style="vertical-align: middle;" colspan="1">
                <el-form-item prop="count5">
                  <el-input-number v-model="editForm5.count5"  :min="0"/>
                </el-form-item>
              </td>
              <th style="width:120px; vertical-align: middle;">合计</th>
              <td style="vertical-align: middle;" colspan="1">{{editForm5.count1+editForm5.count2+editForm5.count3+editForm5.count4+editForm5.count5}}</td>
            </tr>
          </template>
        </table>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="editFormSubmit5" :loading="editLoading">保存</el-button>
        <el-button @click.native="editFormVisible5 = false">取消</el-button>
      </div>
    </el-dialog>
    <!-- 表1：岗位需求信息表（第三个） -->
    <el-dialog :title="dialogTitle" :visible.sync="editFormVisible6" width="98%" top="20px" :close-on-click-modal="false" :close-on-press-escape="false">
      <el-form :model="editForm6" label-width="200px" ref="editForm6" :inline="true" style="padding:10px 0 0;clear:both" inline-message :rules="editFormRules6">
        <table cellspacing="0" cellpadding="0" class="mytable">
          <!-- <tr v-if="unitBeijing!==3"> -->
          <tr>
            <th style="width:120px; vertical-align: middle;">单位名称</th>
            <td style="vertical-align: middle;" :colspan="3">
              <el-form-item prop="unitName">
                <el-input v-model="editForm6.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <!-- <tr v-else>
            <th style="width:120px; vertical-align: middle;">单位名称</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="unitName">
                <el-input v-model="editForm6.unitName" style="width:500px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">京内京外</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="unitBeijing">
                <el-radio-group v-model="editForm6.unitBeijing">
                  <el-radio :label="1">在京单位</el-radio>
                  <el-radio :label="2">京外单位</el-radio>
                </el-radio-group>
              </el-form-item>
            </td>
          </tr> -->
          <tr>
            <th style="width:120px; vertical-align: middle;">具体工作部门</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="department">
                <el-input v-model="editForm6.department" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">岗位</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="post">
                <el-input v-model="editForm6.post" style="width:200px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">招聘人数</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="personCount">
                <el-input-number v-model="editForm6.personCount"  :min="0"/>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">户籍要求</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="residenceRequirements">
                <el-input v-model="editForm6.residenceRequirements" style="width:200px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">学历学位</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="education">
                <el-input v-model="editForm6.education" style="width:200px"></el-input>
              </el-form-item>
            </td>
            <th style="width:120px; vertical-align: middle;">专业</th>
            <td style="vertical-align: middle;">
              <el-form-item prop="major">
                <el-input v-model="editForm6.major" style="width:500px" :maxlength="500" show-word-limit></el-input>
                <div>
                  填写要求：专业可以填写专业大类、专业中类或具体专业名称，专业名称后括号中写对应的专业代码，多个专业之间用“;”隔开，最后一个专业后面不需要“;”。<br>
                  示例：<b>法学(03);文学(05);管理学(12);信息与通信工程(0810);中国语言与文化(050108T);电子与计算机工程(080909T);网络空间安全(080911TK)</b>
                </div>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">其他条件</th>
            <td style="vertical-align: middle;" :colspan="3">
              <el-form-item prop="others">
                <el-input v-model="editForm6.others" style="width:500px"></el-input>
              </el-form-item>
            </td>
          </tr>
          <tr>
            <th style="width:120px; vertical-align: middle;">备注</th>
            <td style="vertical-align: middle;" :colspan="3">
              <el-form-item prop="remark">
                <el-input v-model="editForm6.remark" style="width:500px"></el-input>
              </el-form-item>
            </td>
          </tr>
        </table>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click.native="editFormSubmit6" :loading="editLoading">保存</el-button>
        <el-button @click.native="editFormVisible6 = false">取消</el-button>
      </div>
    </el-dialog>

    <div v-if="userType===1&&(state===0||state===5)">
      <el-upload
        style="width:800px;margin-bottom:10px;"
        ref="upload1"
        :action="this.$http.defaults.baseURL+this.$http.defaults.recruitAPI +'api/recruitGenFileInfo/upload'"
        :on-success="handleUploadSucc1"
        :on-error="uploadError"
        :before-upload="beforeUpload"
        accept="application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-works,.wps"
        :show-file-list="false"
      >
        <el-button type="primary" :loading="saveloading">上传PDF</el-button>
        <!-- <div slot="tip" class="el-upload__tip">注：支持上传word/pdf/wps文件</div>
        <div style="clear:both" /> -->
      </el-upload>
    </div>
    <template v-if="userType!==2||(state!==0&&state!==5)">
      <div v-if="!fileListLoading">
        <template v-if="files1&&files1.length>0">
          <div v-for="(item,index) in files1" :key="index" style="line-height:40px">
            <a href="javascript:void(0)" @click="download(item.id)"><i class="el-icon-paperclip" /> {{item.fileName}}.{{item.fileType}}</a>
            <el-button v-if="userType===1&&(state===0||state===5)" style="margin-left:10px" size="mini" type="danger" @click="beforeRemove(item,'bus_plan_declare','files1')">删除</el-button>
            <!-- <template v-if="item.fileType==='pdf'"><i style="cursor: pointer;" class="el-icon-search" @click="showfile(item.id)" /></template> -->
          </div>
        </template>
      </div>
      <div v-else>加载中...</div>
      <el-tabs v-model="activeName" @tab-click="tabClick">
        <el-tab-pane name="6">
          <span slot="label">表1：岗位需求信息表</span>
          <template v-if="unitBeijing!==2">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd5(null,1)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export5(1)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable5/saveImport?unitBeijing=1&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate(1)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading1" @click="moveData1(true)" :disabled="!moveUpFlag1">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading1" @click="moveData1(false)" :disabled="!moveDownFlag1">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel5(null,1)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{theYear}}年度招聘应届毕业生岗位需求信息表（在京单位）</h1>
            <el-table :data="list5_1" highlight-current-row v-loading="listLoading" style="width: 100%;margin-bottom: 20px;" show-summary @selection-change="handleSelectionChange1" ref="multipleTable1">
              <el-table-column type="selection" width="60" fixed/>
              <el-table-column prop="unitName" label="单位名称" min-width="150" fixed>
              </el-table-column>
              <el-table-column label="具体工作部门" width="250">
                <template slot-scope="scope">
                  {{scope.row.department}}
                </template>
              </el-table-column>
              <el-table-column label="岗位" width="150" align="center">
                <template slot-scope="scope">
                  {{scope.row.post}}
                </template>
              </el-table-column>
              <el-table-column label="专业" width="250" align="center">
                <template slot-scope="scope">
                  {{scope.row.major}}
                </template>
              </el-table-column>
              <el-table-column label="京内生源" width="80" align="center">
                <el-table-column prop="countBeijing1" width="70" label="大专" align="center" />
                <el-table-column prop="countBeijing2" width="70" label="本科生" align="center" />
                <el-table-column prop="countBeijing3" width="70" label="硕士研究生" align="center" />
                <el-table-column prop="countBeijing4" width="70" label="博士研究生" align="center" />
                <el-table-column prop="countBeijing5" width="70" label="其他" align="center" />
                <el-table-column prop="sum5_1" width="60" label="小计" align="center" />
              </el-table-column>
              <el-table-column label="京外生源" width="80" align="center">
                <el-table-column prop="count1" width="70" label="大专" align="center" />
                <el-table-column prop="count2" width="70" label="本科生" align="center" />
                <el-table-column prop="count3" width="70" label="硕士研究生" align="center" />
                <el-table-column prop="count4" width="70" label="博士研究生" align="center" />
                <el-table-column prop="count5" width="70" label="其他" align="center" />
                <el-table-column prop="sum5_2" width="60" label="小计" align="center" />
              </el-table-column>
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit8" fixed="right">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail5(scope.row,null,1)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel5(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
          <!-- <el-button v-if="canEdit" icon="el-icon-upload2" type="success" style="float:right">批量导入</el-button>
          <el-button v-if="canEdit" icon="el-icon-download" type="primary" style="float:right;margin-right:10px">下载模板</el-button> -->
          <template v-if="unitBeijing!==1">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd5(null,2)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export5(2)">导出</el-button><el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable5/saveImport?unitBeijing=2&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate(2)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading2" @click="moveData2(true)" :disabled="!moveUpFlag2">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading2" @click="moveData2(false)" :disabled="!moveDownFlag2">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel5(null,2)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{theYear}}年度招聘应届毕业生岗位需求信息表（京外单位）</h1>
            <el-table :data="list5_2" highlight-current-row v-loading="listLoading" style="width: 100%;margin-bottom: 20px;" show-summary @selection-change="handleSelectionChange2" ref="multipleTable2">
              <el-table-column type="selection" width="60" />
              <el-table-column prop="unitName" label="单位名称" min-width="150">
              </el-table-column>
              <el-table-column label="具体工作部门" width="250">
                <template slot-scope="scope">
                  {{scope.row.department}}
                </template>
              </el-table-column>
              <el-table-column label="岗位" width="150" align="center">
                <template slot-scope="scope">
                  {{scope.row.post}}
                </template>
              </el-table-column>
              <el-table-column label="专业" width="250" align="center">
                <template slot-scope="scope">
                  {{scope.row.major}}
                </template>
              </el-table-column>
              <el-table-column prop="sy" label="学历要求" width="80" align="center">
                <el-table-column prop="count1" width="70" label="大专" align="center" />
                <el-table-column prop="count2" width="70" label="本科生" align="center" />
                <el-table-column prop="count3" width="70" label="硕士研究生" align="center" />
                <el-table-column prop="count4" width="70" label="博士研究生" align="center" />
                <el-table-column prop="count5" width="70" label="其他" align="center" />
                <el-table-column prop="sum5_2" width="60" label="小计" align="center" />
              </el-table-column>
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit9">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail5(scope.row,null,2)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel5(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
          <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd6(null,null)">新增</el-button>
          <el-button icon="el-icon-download" type="primary" style="float:right" @click="export6()">导出</el-button>
          <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList" :on-error="uploadError" name="file" :show-file-list="false"
            :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable6/saveImport?theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
            <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
          </el-upload>
          <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate2()">下载模板</el-button>
          <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
            <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading3" @click="moveData3(true)" :disabled="!moveUpFlag3">上移</el-button>
            <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading3" @click="moveData3(false)" :disabled="!moveDownFlag3">下移</el-button>
          </el-button-group>
          <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel6(null)" style="float:left;margin-left:10px">批量删除</el-button>
          <h1 style="text-align:center">{{theYear}}年度招聘在职人员岗位需求信息表</h1>
          <el-table :data="list6" highlight-current-row v-loading="listLoading" style="width: 100%;" @selection-change="handleSelectionChange3" ref="multipleTable3">
            <el-table-column type="selection" width="60" />
            <el-table-column type="index" label="序号" width="60" align="center">
            </el-table-column>
            <el-table-column prop="unitName" label="单位名称" min-width="150">
            </el-table-column>
            <el-table-column prop="department" label="具体工作部门" width="250">
            </el-table-column>
            <el-table-column prop="post" label="岗位" width="150" align="center">
            </el-table-column>
            <el-table-column prop="personCount" label="招聘人数" width="100" align="center">
            </el-table-column>
            <el-table-column prop="residenceRequirements" label="户籍要求" width="100" align="center">
            </el-table-column>
            <el-table-column prop="education" label="学历学位" width="150" align="center">
            </el-table-column>
            <el-table-column prop="major" label="专业" width="150" align="center">
            </el-table-column>
            <el-table-column prop="others" label="其他条件" width="200" align="center">
            </el-table-column>
            <el-table-column prop="remark" label="备注" width="100">
            </el-table-column>
            <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit10">
              <template slot-scope="scope">
                <template>
                  <el-dropdown split-button  @click="handleDetail6(scope.row)" size="small" type="primary" :loading="btnLoading">
                    修改
                    <el-dropdown-menu slot="dropdown">
                      <el-dropdown-item @click.native="handleDel6(scope.row.id)" >删除</el-dropdown-item>
                    </el-dropdown-menu>
                  </el-dropdown>
                </template>
              </template>
            </el-table-column>
          </el-table>
          <!-- <template v-if="userType===1&&(state===0||state===5)">
            <el-button v-if="unitInfoFlag" type="primary" :loading="btnLoading" style="margin-top:10px" @click="saveTableData">同步表2-6数据</el-button>
            <template v-else>
              <div style="margin:10px 0">请先维护单位基础信息和历年招聘人员留存情况后，再同步表2-6数据</div>
              <div>
                <el-button type="success" @click="baseInfo" >基础信息维护</el-button>
                <el-button type="primary" @click="personInfo" >历年招聘人员留存情况维护</el-button>
              </div>
            </template>
          </template> -->
        </el-tab-pane>
        <el-tab-pane name="1">
          <span slot="label">
            表2：应届毕业生招聘计划申报表
            <el-tooltip class="item"
              :open-delay="600"
              placement="top"
              content="与历年招聘人员信息库不一致"
              v-if="recordObj.table11Flag === 0 || recordObj.table12Flag === 0">
              <el-button type="text" icon="el-icon-warning" />
            </el-tooltip>
          </span>
          <template v-if="unitBeijing!==2">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd1(1,1)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export1(1,1)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList1" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable1/saveImport?unitBeijing=1&theType=1&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate3(1, 1)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading1" @click="moveData4(true)" :disabled="!moveUpFlag4">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading1" @click="moveData4(false)" :disabled="!moveDownFlag4">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel1(null,1)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{theYear}}年度应届毕业生招聘计划申报表（在京单位填写）</h1>
            <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table11Flag===0">
              <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
              <el-tooltip class="item"
                :open-delay="600"
                placement="top"
                :content="checkResult1"
                v-if="checkResult1!==''">
                <el-button type="text" icon="el-icon-warning" />
              </el-tooltip>
              <span style="font-weight: bold;" v-if="recordObj.table11Remarks">{{ '（'+ recordObj.table11Remarks +'）' }}</span>
              <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(11, recordObj.table11Remarks)" v-if="userType===1&&(state===0||state===5)">
                {{ recordObj.table11Remarks ? '修改备注说明' : '备注说明' }}
              </el-button>
            </div>
            <el-table :data="list1_1" highlight-current-row v-loading="listLoading" style="width: 100%;margin-bottom: 20px;" show-summary :header-cell-class-name="headerCellClassName" @selection-change="handleSelectionChange4" ref="multipleTable4">
              <el-table-column type="selection" width="60" fixed/>
              <el-table-column label="单位名称" min-width="150" fixed>
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear" :testTable="table1_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="unitName" />
                </template>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="postNum" label="编制（员工控制数）" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPostNum" label="领导班子职数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="personNum" label="现有人员数" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPersonNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="retireeNum" :label="remarksByYear" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderRetireeNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column :label="'上一年度('+(theYear-1)+'年)年实际接收情况'" align="center">
                <el-table-column label="京内生源" align="center">
                  <el-table-column prop="countLastYearBeijing1" width="55" label="大专" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="countLastYearBeijing1" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYearBeijing2" width="55" label="本科生" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="countLastYearBeijing2" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYearBeijing3" width="55" label="硕士研究生" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="countLastYearBeijing3" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYearBeijing4" width="55" label="博士研究生" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="countLastYearBeijing4" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYearBeijing5" width="55" label="其他" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="countLastYearBeijing5" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="sum1" width="55" label="小计" align="center" />
                </el-table-column>
                <el-table-column label="京外生源" align="center">
                  <el-table-column prop="countLastYear1" width="55" label="大专" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear1" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYear2" width="55" label="本科生" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear2" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYear3" width="55" label="硕士研究生" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear3" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYear4" width="55" label="博士研究生" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear4" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="countLastYear5" width="55" label="其他" align="center">
                    <template slot-scope="scope">
                      <jihuaTooltip :theYear="theYear-1" :testTable="table1_1" unitBeijing="1" :inBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear5" />
                    </template>
                  </el-table-column>
                  <el-table-column prop="sum2" width="55" label="小计" align="center" />
                </el-table-column>
                <el-table-column prop="prop1" width="80" label="京内生源比例" align="center" />
              </el-table-column>
              <el-table-column :label="'本年度('+theYear+'年)需求情况'" align="center">
                <el-table-column label="京内生源" align="center">
                  <el-table-column prop="countBeijing1" width="55" label="大专" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing2" width="55" label="本科生" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing3" width="55" label="硕士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing4" width="55" label="博士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing5" width="55" label="其他" align="center">
                  </el-table-column>
                  <el-table-column prop="sum3" width="55" label="小计" align="center" />
                </el-table-column>
                <el-table-column label="京外生源" align="center">
                  <el-table-column prop="count1" width="55" label="大专" align="center">
                  </el-table-column>
                  <el-table-column prop="count2" width="55" label="本科生" align="center">
                  </el-table-column>
                  <el-table-column prop="count3" width="55" label="硕士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="count4" width="55" label="博士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="count5" width="55" label="其他" align="center">
                  </el-table-column>
                  <el-table-column prop="sum4" width="55" label="小计" align="center" />
                </el-table-column>
                <el-table-column prop="prop2" width="80" label="京内生源比例" align="center" />
              </el-table-column>
              <!-- <el-table-column label="备注" width="100" show-overflow-tooltip>
                <template slot-scope="scope">
                  {{scope.row.remark}}
                </template>
              </el-table-column> -->
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit1" fixed="right">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail1(scope.row,1,1)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel1(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
          <template v-if="unitBeijing!==1">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd1(1,2)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export1(1,2)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList1" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable1/saveImport?unitBeijing=2&theType=1&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate3(1, 2)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading2" @click="moveData5(true)" :disabled="!moveUpFlag5">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading2" @click="moveData5(false)" :disabled="!moveDownFlag5">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel1(null,2)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{theYear}}年度应届毕业生招聘计划申报表（京外单位填写）</h1>
            <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table12Flag===0">
              <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
              <el-tooltip class="item"
                :open-delay="600"
                placement="top"
                :content="checkResult2"
                v-if="checkResult2!==''">
                <el-button type="text" icon="el-icon-warning" />
              </el-tooltip>
              <span style="font-weight: bold;" v-if="recordObj.table12Remarks">{{ '（'+ recordObj.table12Remarks +'）' }}</span>
              <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(12, recordObj.table12Remarks)" v-if="userType===1&&(state===0||state===5)">
                {{ recordObj.table12Remarks ? '修改备注说明' : '备注说明' }}
              </el-button>
            </div>
            <el-table :data="list1_2" highlight-current-row v-loading="listLoading" style="width: 100%;" show-summary :header-cell-class-name="headerCellClassName" @selection-change="handleSelectionChange5" ref="multipleTable5">
              <el-table-column type="selection" width="60" />
              <el-table-column prop="unitName" label="单位名称" min-width="150">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear" :testTable="table1_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="unitName" />
                </template>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="postNum" label="编制（员工控制数）" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPostNum" label="领导班子职数" width="55" align="center">
                </el-table-column>
                </el-table-column>
              <el-table-column>
                <el-table-column prop="personNum" label="现有人员数" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPersonNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="retireeNum" :label="remarksByYear" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderRetireeNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column :label="'上一年度('+(theYear-1)+'年)年实际接收情况'" align="center">
                <el-table-column prop="countLastYear1" width="55" label="大专" align="center">
                  <template slot-scope="scope">
                    <jihuaTooltip :theYear="theYear-1" :testTable="table1_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear1" />
                  </template>
                </el-table-column>
                <el-table-column prop="countLastYear2" width="55" label="本科生" align="center">
                  <template slot-scope="scope">
                    <jihuaTooltip :theYear="theYear-1" :testTable="table1_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear2" />
                  </template>
                </el-table-column>
                <el-table-column prop="countLastYear3" width="55" label="硕士研究生" align="center">
                  <template slot-scope="scope">
                    <jihuaTooltip :theYear="theYear-1" :testTable="table1_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear3" />
                  </template>
                </el-table-column>
                <el-table-column prop="countLastYear4" width="55" label="博士研究生" align="center">
                  <template slot-scope="scope">
                    <jihuaTooltip :theYear="theYear-1" :testTable="table1_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear4" />
                  </template>
                </el-table-column>
                <el-table-column prop="countLastYear5" width="55" label="其他" align="center">
                  <template slot-scope="scope">
                    <jihuaTooltip :theYear="theYear-1" :testTable="table1_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="countLastYear5" />
                  </template>
                </el-table-column>
                <el-table-column prop="sum2" width="55" label="小计" align="center" />
              </el-table-column>
              <el-table-column  :label="'本年度('+theYear+'年)需求情况'" align="center">
                <el-table-column prop="count1" width="55" label="大专" align="center">
                </el-table-column>
                <el-table-column prop="count2" width="55" label="本科生" align="center">
                </el-table-column>
                <el-table-column prop="count3" width="55" label="硕士研究生" align="center">
                </el-table-column>
                <el-table-column prop="count4" width="55" label="博士研究生" align="center">
                </el-table-column>
                <el-table-column prop="count5" width="55" label="其他" align="center">
                </el-table-column>
                <el-table-column prop="sum4" width="55" label="小计" align="center" />
              </el-table-column>
              <!-- <el-table-column label="备注" width="100" show-overflow-tooltip>
                <template slot-scope="scope">
                  {{scope.row.remark}}
                </template>
              </el-table-column> -->
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit2">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail1(scope.row,1,2)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel1(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
        </el-tab-pane>
        <el-tab-pane name="2">
          <span slot="label">表3：在职人员招聘计划申报表</span>
          <template v-if="unitBeijing!==2">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd1(2,1)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export1(2,1)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList1" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable1/saveImport?unitBeijing=1&theType=2&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate3(2, 1)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading1" @click="moveData6(true)" :disabled="!moveUpFlag6">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading1" @click="moveData6(false)" :disabled="!moveDownFlag6">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel7(null,1)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{theYear}}年度在职人员招聘计划申报表（在京单位填写）</h1>
            <el-table :data="list1_3" highlight-current-row v-loading="listLoading" style="width: 100%;margin-bottom: 20px;" show-summary :header-cell-class-name="headerCellClassName" @selection-change="handleSelectionChange6" ref="multipleTable6">
              <el-table-column type="selection" width="60" fixed/>
              <el-table-column prop="unitName" label="单位名称" min-width="150">
              </el-table-column>
              <el-table-column>
                <el-table-column prop="postNum" label="编制（员工控制数）" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPostNum" label="领导班子职数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="personNum" label="现有人员数" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPersonNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="retireeNum" :label="remarksByYear" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderRetireeNum" label="领导班子人数" width="75" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column label="本年度拟申报的应届毕业生招聘计划数" align="center">
                <el-table-column label="京内生源" align="center">
                  <el-table-column prop="countBeijing1" width="55" label="大专" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing2" width="55" label="本科生" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing3" width="55" label="硕士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing4" width="55" label="博士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="countBeijing5" width="55" label="其他" align="center">
                  </el-table-column>
                  <el-table-column prop="sum3" width="55" label="小计" align="center" />
                </el-table-column>
                <el-table-column label="京外生源" align="center">
                  <el-table-column prop="count1" width="55" label="大专" align="center">
                  </el-table-column>
                  <el-table-column prop="count2" width="55" label="本科生" align="center">
                  </el-table-column>
                  <el-table-column prop="count3" width="55" label="硕士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="count4" width="55" label="博士研究生" align="center">
                  </el-table-column>
                  <el-table-column prop="count5" width="55" label="其他" align="center">
                  </el-table-column>
                  <el-table-column prop="sum4" width="55" label="小计" align="center" />
                </el-table-column>
                <el-table-column prop="prop2" width="80" label="京内生源比例" align="center" />
              </el-table-column>
              <el-table-column prop="personCount" width="100" label="本年度在职招聘计划需求数" align="center" />
              <!-- <el-table-column label="备注" width="100" show-overflow-tooltip>
                <template slot-scope="scope">
                  {{scope.row.remark}}
                </template>
              </el-table-column> -->
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit3">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail1(scope.row,2,1)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel1(scope.row.id)">删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
          <template v-if="unitBeijing!==1">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd1(2,2)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export1(2,2)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList1" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable1/saveImport?unitBeijing=2&theType=2&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate3(2, 2)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading2" @click="moveData7(true)" :disabled="!moveUpFlag7">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading2" @click="moveData7(false)" :disabled="!moveDownFlag7">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel7(null,2)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{theYear}}年度在职人员招聘计划申报表（京外单位填写）</h1>
            <el-table :data="list1_4" highlight-current-row v-loading="listLoading" style="width: 100%;" show-summary :header-cell-class-name="headerCellClassName" @selection-change="handleSelectionChange7" ref="multipleTable7">
              <el-table-column type="selection" width="60" fixed/>
              <el-table-column prop="unitName" label="单位名称" min-width="150">
              </el-table-column>
              <el-table-column>
                <el-table-column prop="postNum" label="编制（员工控制数）" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPostNum" label="领导班子职数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="personNum" label="现有人员数" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderPersonNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column>
                <el-table-column prop="retireeNum" :label="remarksByYear" width="70" align="center">
                </el-table-column>
                <el-table-column prop="leaderRetireeNum" label="领导班子人数" width="55" align="center">
                </el-table-column>
              </el-table-column>
              <el-table-column label="本年度拟申报的应届毕业生招聘计划数" align="center">
                <el-table-column prop="count1" width="55" label="大专" align="center">
                </el-table-column>
                <el-table-column prop="count2" width="55" label="本科生" align="center">
                </el-table-column>
                <el-table-column prop="count3" width="55" label="硕士研究生" align="center">
                </el-table-column>
                <el-table-column prop="count4" width="55" label="博士研究生" align="center">
                </el-table-column>
                <el-table-column prop="count5" width="55" label="其他" align="center">
                </el-table-column>
                <el-table-column prop="sum4" width="55" label="小计" align="center" />
              </el-table-column>
              <el-table-column prop="personCount" width="100" label="本年度在职招聘计划需求数" align="center" />
              <!-- <el-table-column label="备注" width="100" show-overflow-tooltip>
                <template slot-scope="scope">
                  {{scope.row.remark}}
                </template>
              </el-table-column> -->
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit4">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail1(scope.row,2,2)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel1(scope.row.id)">删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
        </el-tab-pane>
        <el-tab-pane name="3" v-if="unitBeijing!==2">
          <span slot="label">
            表4：应届毕业生招聘工作情况统计表
            <el-tooltip class="item"
              :open-delay="600"
              placement="top"
              content="与历年招聘人员信息库不一致"
              v-if="recordObj.table21Flag === 0">
              <el-button type="text" icon="el-icon-warning" />
            </el-tooltip>
          </span>
          <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd2(1,1)">新增</el-button>
          <el-button icon="el-icon-download" type="primary" style="float:right" @click="export2()">导出</el-button>
          <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList2" :on-error="uploadError" name="file" :show-file-list="false"
            :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable2/saveImport?theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
            <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
          </el-upload>
          <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate4()">下载模板</el-button>
          <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
            <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading1" @click="moveData8(true)" :disabled="!moveUpFlag8">上移</el-button>
            <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading1" @click="moveData8(false)" :disabled="!moveDownFlag8">下移</el-button>
          </el-button-group>
          <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel2(null)" style="float:left;margin-left:10px">批量删除</el-button>
          <h1 style="text-align:center">{{startYear}}——{{parseInt(startYear)+2}}年度招聘工作情况统计表（在京单位填写，仅限京外生源）</h1>
          <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table21Flag===0">
            <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
            <el-tooltip class="item"
              :open-delay="600"
              placement="top"
              :content="checkResult1"
              v-if="checkResult1!==''">
              <el-button type="text" icon="el-icon-warning" />
            </el-tooltip>
            <span style="font-weight: bold;" v-if="recordObj.table21Remarks">{{ '（'+ recordObj.table21Remarks +'）' }}</span>
            <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(21, recordObj.table21Remarks)" v-if="userType===1&&(state===0||state===5)">
              {{ recordObj.table21Remarks ? '修改备注说明' : '备注说明' }}
            </el-button>
          </div>
          <el-table :data="list2" highlight-current-row v-loading="listLoading" style="width: 100%;" @selection-change="handleSelectionChange8" ref="multipleTable8">
            <el-table-column type="selection" width="60"/>
            <el-table-column prop="unitName" label="单位名称" min-width="150">
              <template slot-scope="scope">
                <jihuaTooltip :theYear="theYear" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :rowData="scope.row" columnName="unitName" />
              </template>
            </el-table-column>
            <el-table-column :label="parseInt(startYear)+'年度毕业生留存情况'" align="center">
              <el-table-column prop="count1" width="90" label="实际接收落户人数" align="center">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear-4" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :rowData="scope.row" columnName="count1" />
                </template>
              </el-table-column>
              <el-table-column prop="inPostCount1" width="90" label="截止目前在岗人数" align="center">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear-4" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :inPost="1" :rowData="scope.row" columnName="inPostCount1" />
                </template>
              </el-table-column>
              <el-table-column prop="prop1" width="90" label="留存率" align="center" />
            </el-table-column>
            <el-table-column :label="(parseInt(startYear)+1)+'年度毕业生留存情况'" align="center">
              <el-table-column prop="count2" width="90" label="实际接收落户人数" align="center">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear-3" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :rowData="scope.row" columnName="count2" />
                </template>
              </el-table-column>
              <el-table-column prop="inPostCount2" width="90" label="截止目前在岗人数" align="center">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear-3" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :inPost="1" :rowData="scope.row" columnName="inPostCount2" />
                </template>
              </el-table-column>
              <el-table-column prop="prop2" width="90" label="留存率" align="center" />
            </el-table-column>
            <el-table-column :label="(parseInt(startYear)+2)+'年度毕业生留存情况'" align="center">
              <el-table-column prop="count3" width="90" label="实际接收落户人数" align="center">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear-2" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :rowData="scope.row" columnName="count3" />
                </template>
              </el-table-column>
              <el-table-column prop="inPostCount3" width="90" label="截止目前在岗人数" align="center">
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear-2" :testTable="table2_1" unitBeijing="1" :unitId="unitId" :inBeijing="2" :inPost="1" :rowData="scope.row" columnName="inPostCount3" />
                </template>
              </el-table-column>
              <el-table-column prop="prop3" width="90" label="留存率" align="center" />
            </el-table-column>
            <el-table-column prop="institutional" label="制度建设情况" width="370">
              <template slot-scope="scope">
                <div v-if="scope.row.institutional" v-html="scope.row.institutional.replace(/\r\n/g,'<br>')" />
              </template>
            </el-table-column>
            <el-table-column prop="receiveMode" label="毕业生招聘接收方式" width="200">
              <template slot-scope="scope">
                <div v-if="scope.row.receiveMode" v-html="scope.row.receiveMode.replace(/\r\n/g,'<br>')" />
              </template>
            </el-table-column>
            <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit5">
              <template slot-scope="scope">
                <template>
                  <el-dropdown split-button  @click="handleDetail2(scope.row)" size="small" type="primary" :loading="btnLoading">
                    修改
                    <el-dropdown-menu slot="dropdown">
                      <el-dropdown-item @click.native="handleDel2(scope.row.id)">删除</el-dropdown-item>
                    </el-dropdown-menu>
                  </el-dropdown>
                </template>
              </template>
            </el-table-column>
          </el-table>
        </el-tab-pane>
        <el-tab-pane name="4">
          <span slot="label">
            表5：招聘应届毕业生留存情况表
            <el-tooltip class="item"
              :open-delay="600"
              placement="top"
              content="与历年招聘人员信息库不一致"
              v-if="recordObj.table31Flag === 0 || recordObj.table32Flag === 0">
              <el-button type="text" icon="el-icon-warning" />
            </el-tooltip>
          </span>
          <template v-if="unitBeijing!==2">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd3(null,1)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export3(1)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList3" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable3/saveImport?unitBeijing=1&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate5(1)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading1" @click="moveData9(true)" :disabled="!moveUpFlag9">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading1" @click="moveData9(false)" :disabled="!moveDownFlag9">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel3(null, 1)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{startYear}}——{{parseInt(startYear)+2}}年度招聘应届毕业生留存情况表（在京单位填写）</h1>
            <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table31Flag===0">
              <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
              <el-tooltip class="item"
                :open-delay="600"
                placement="top"
                :content="checkResult1"
                v-if="checkResult1!==''">
                <el-button type="text" icon="el-icon-warning" />
              </el-tooltip>
              <span style="font-weight: bold;" v-if="recordObj.table31Remarks">{{ '（'+ recordObj.table31Remarks +'）' }}</span>
              <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(31, recordObj.table31Remarks)" v-if="userType===1&&(state===0||state===5)">
                {{ recordObj.table31Remarks ? '修改备注说明' : '备注说明' }}
              </el-button>
            </div>
            <el-table :data="list3_1" highlight-current-row v-loading="listLoading" style="width: 100%;margin-bottom: 20px;" @selection-change="handleSelectionChange9" ref="multipleTable9">
              <el-table-column type="selection" width="60" fixed/>
              <el-table-column prop="unitName" label="单位名称" min-width="100" fixed>
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="unitName" />
                </template>
              </el-table-column>
              <el-table-column label="毕业生留存率（填写接收的所有毕业生情况，含京内、京外生源）" align="center">
                <el-table-column :label="startYear+'年'" align="center">
                  <el-table-column label="实际接收人数" align="center">
                    <el-table-column prop="count111" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count111" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count112" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count112" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count113" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count113" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count114" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count114" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count115" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count115" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum11" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column label="目前在岗人数" align="center">
                    <el-table-column prop="count121" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count121" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count122" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count122" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count123" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count123" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count124" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count124" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count125" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count125" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum12" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column prop="prop1" width="80" label="留存率" align="center" />
                </el-table-column>
                <el-table-column :label="(parseInt(startYear)+1)+'年'" align="center">
                  <el-table-column label="实际接收人数" align="center">
                    <el-table-column prop="count211" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count211" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count212" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count212" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count213" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count213" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count214" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count214" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count215" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count215" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum21" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column label="目前在岗人数" align="center">
                    <el-table-column prop="count221" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count221" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count222" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count222" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count223" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count223" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count224" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count224" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count225" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count225" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum22" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column prop="prop2" width="80" label="留存率" align="center" />
                </el-table-column>
                <el-table-column :label="(parseInt(startYear)+2)+'年'" align="center">
                  <el-table-column label="实际接收人数" align="center">
                    <el-table-column prop="count311" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count311" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count312" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count312" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count313" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count313" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count314" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count314" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count315" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count315" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum31" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column label="目前在岗人数" align="center">
                    <el-table-column prop="count321" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count321" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count322" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count322" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count323" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count323" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count324" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count324" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count325" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_1" unitBeijing="1" :unitId="unitId" :rowData="scope.row" columnName="count325" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum32" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column prop="prop3" width="80" label="留存率" align="center" />
                </el-table-column>
              </el-table-column>
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" fixed="right">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail3(scope.row,null,1)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel3(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
          <template v-if="unitBeijing!==1">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd3(null,2)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export3(2)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList3" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable3/saveImport?unitBeijing=2&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate5(2)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading2" @click="moveData10(true)" :disabled="!moveUpFlag10">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading2" @click="moveData10(false)" :disabled="!moveDownFlag10">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel3(null, 2)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{startYear}}——{{parseInt(startYear)+2}}年度招聘应届毕业生留存情况表（京外单位填写）</h1>
            <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table32Flag===0">
              <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
              <el-tooltip class="item"
                :open-delay="600"
                placement="top"
                :content="checkResult2"
                v-if="checkResult2!==''">
                <el-button type="text" icon="el-icon-warning" />
              </el-tooltip>
              <span style="font-weight: bold;" v-if="recordObj.table32Remarks">{{ '（'+ recordObj.table32Remarks +'）' }}</span>
              <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(32, recordObj.table32Remarks)" v-if="userType===1&&(state===0||state===5)">
                {{ recordObj.table32Remarks ? '修改备注说明' : '备注说明' }}
              </el-button>
            </div>
            <el-table :data="list3_2" highlight-current-row v-loading="listLoading" style="width: 100%;" @selection-change="handleSelectionChange10" ref="multipleTable10">
              <el-table-column type="selection" width="60" fixed/>
              <el-table-column prop="unitName" label="单位名称" min-width="100" fixed>
                <template slot-scope="scope">
                  <jihuaTooltip :theYear="theYear" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="unitName" />
                </template>
              </el-table-column>
              <el-table-column label="毕业生留存率" align="center">
                <el-table-column :label="startYear+'年'" align="center">
                  <el-table-column label="实际接收人数" align="center">
                    <el-table-column prop="count111" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count111" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count112" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count112" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count113" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count113" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count114" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count114" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count115" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count115" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum11" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column label="目前在岗人数" align="center">
                    <el-table-column prop="count121" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count121" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count122" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count122" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count123" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count123" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count124" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count124" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count125" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-4" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count125" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum12" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column prop="prop1" width="80" label="留存率" align="center" />
                </el-table-column>
                <el-table-column :label="(parseInt(startYear)+1)+'年'" align="center">
                  <el-table-column label="实际接收人数" align="center">
                    <el-table-column prop="count211" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count211" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count212" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count212" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count213" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count213" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count214" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count214" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count215" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count215" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum21" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column label="目前在岗人数" align="center">
                    <el-table-column prop="count221" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count221" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count222" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count222" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count223" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count223" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count224" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count224" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count225" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-3" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count225" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum22" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column prop="prop2" width="80" label="留存率" align="center" />
                </el-table-column>
                <el-table-column :label="(parseInt(startYear)+2)+'年'" align="center">
                  <el-table-column label="实际接收人数" align="center">
                    <el-table-column prop="count311" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count311" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count312" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count312" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count313" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count313" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count314" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count314" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count315" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count315" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum31" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column label="目前在岗人数" align="center">
                    <el-table-column prop="count321" width="55" label="大专" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count321" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count322" width="55" label="本科生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count322" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count323" width="55" label="硕士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count323" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count324" width="55" label="博士研究生" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count324" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="count325" width="55" label="其他" align="center">
                      <template slot-scope="scope">
                        <jihuaTooltip :theYear="theYear-2" :testTable="table3_2" unitBeijing="2" :unitId="unitId" :rowData="scope.row" columnName="count325" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="sum32" width="55" label="合计" align="center" />
                  </el-table-column>
                  <el-table-column prop="prop3" width="80" label="留存率" align="center" />
                </el-table-column>
              </el-table-column>
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" fixed="right">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail3(scope.row,null,2)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel3(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
        </el-tab-pane>
        <el-tab-pane name="5">
          <span slot="label">
            表6：招聘应届毕业生情况明细表
            <el-tooltip class="item"
              :open-delay="600"
              placement="top"
              content="与历年招聘人员信息库不一致"
              v-if="recordObj.table41Flag === 0 || recordObj.table42Flag === 0">
              <el-button type="text" icon="el-icon-warning" />
            </el-tooltip>
          </span>
          <template v-if="unitBeijing!==2">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd4(null,1)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export4(1)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList4" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable4/saveImport?unitBeijing=1&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate6(1)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading1" @click="moveData11(true)" :disabled="!moveUpFlag11">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading1" @click="moveData11(false)" :disabled="!moveDownFlag11">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel4(null, 1)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{startYear}}——{{parseInt(startYear)+2}}年度招聘应届毕业生情况明细表（在京单位填写）</h1>
            <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table41Flag===0">
              <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
              <el-tooltip class="item"
                :open-delay="600"
                placement="top"
                :content="checkResult1"
                v-if="checkResult1!==''">
                <el-button type="text" icon="el-icon-warning" />
              </el-tooltip>
              <span style="font-weight: bold;" v-if="recordObj.table41Remarks">{{ '（'+ recordObj.table41Remarks +'）' }}</span>
              <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(41, recordObj.table41Remarks)" v-if="userType===1&&(state===0||state===5)">
                {{ recordObj.table41Remarks ? '修改备注说明' : '备注说明' }}
              </el-button>
            </div>
            <el-table :data="list4_1" highlight-current-row v-loading="listLoading" style="width: 100%;margin-bottom: 20px;" @selection-change="handleSelectionChange11" ref="multipleTable11">
              <el-table-column type="selection" width="60"/>
              <el-table-column prop="receiveYear" label="接收年份" width="100" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="receiveYear" />
                </template>
              </el-table-column>
              <el-table-column prop="unitName" label="单位名称" min-width="150">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="unitName" />
                </template>
              </el-table-column>
              <el-table-column prop="department" label="部门名称" width="120" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="department" />
                </template>
              </el-table-column>
              <el-table-column prop="post" label="工作岗位（职位）" width="150" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="post" />
                </template>
              </el-table-column>
              <el-table-column prop="realName" label="姓名" width="80" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="realName" />
                </template>
              </el-table-column>
              <el-table-column prop="inBeijing" label="生源（京内/京外）" width="90" align="center">
                <template slot-scope="scope">
                  <!-- {{scope.row.inBeijing===1?'京内':'京外'}} -->
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="inBeijing" flag="1" />
                </template>
              </el-table-column>
              <el-table-column prop="school" label="院校" width="150" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="school" />
                </template>
              </el-table-column>
              <el-table-column prop="major" label="所学专业" width="150" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="major" />
                </template>
              </el-table-column>
              <el-table-column prop="inPost" label="是否在岗" width="90" align="center">
                <template slot-scope="scope">
                  <!-- {{scope.row.inPost?'是':'否'}} -->
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_1" :unitId="unitId" :rowData="scope.row" columnName="inPost" flag="2" />
                </template>
              </el-table-column>
              <el-table-column prop="remark" label="备注" width="150">
              </el-table-column>
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit6">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail4(scope.row,null,1)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel4(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
          <template v-if="unitBeijing!==1">
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-plus" type="success" style="float:right;margin-left:10px" @click="handleAdd4(null,2)">新增</el-button>
            <el-button icon="el-icon-download" type="primary" style="float:right" @click="export4(2)">导出</el-button>
            <el-upload v-if="userType===1&&(state===0||state===5)" style="margin:0;float:right;margin-left:10px" class="upload-demo" :before-upload="beforeAvatarUpload" :on-success="getImportList4" :on-error="uploadError" name="file" :show-file-list="false"
              :action="this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable4/saveImport?unitBeijing=2&theYear='+this.theYear" with-credentials accept="vnd.openxmlformats-officedocument.spreadsheetml.sheet">
              <el-button icon="el-icon-upload2" type="success" :loading="saveloading">批量导入</el-button>
            </el-upload>
            <el-button v-if="userType===1&&(state===0||state===5)" icon="el-icon-download" type="primary" style="float:right;margin-left:10px" @click="downloadTemplate6(2)">下载模板</el-button>
            <el-button-group v-if="userType===1&&(state===0||state===5)" style="float:left">
              <el-button type="primary" icon="el-icon-arrow-up" :loading="addLoading2" @click="moveData12(true)" :disabled="!moveUpFlag12">上移</el-button>
              <el-button type="primary" icon="el-icon-arrow-down" :loading="addLoading2" @click="moveData12(false)" :disabled="!moveDownFlag12">下移</el-button>
            </el-button-group>
            <el-button v-if="userType===1&&(state===0||state===5)" type="danger" icon="el-icon-delete" @click="handleDel4(null, 2)" style="float:left;margin-left:10px">批量删除</el-button>
            <h1 style="text-align:center">{{startYear}}——{{parseInt(startYear)+2}}年度接收高校毕业生情况明细表（京外单位填写）</h1>
            <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 4px;" v-if="recordObj.table42Flag===0">
              <span style="color: red;font-weight: bold;">填报数据与历年招聘人员信息库不一致</span>
              <el-tooltip class="item"
                :open-delay="600"
                placement="top"
                :content="checkResult2"
                v-if="checkResult2!==''">
                <el-button type="text" icon="el-icon-warning" />
              </el-tooltip>
              <span style="font-weight: bold;" v-if="recordObj.table42Remarks">{{ '（'+ recordObj.table42Remarks +'）' }}</span>
              <el-button icon="el-icon-edit" type="primary" style="margin-left: 10px;" @click="handleRemarks(42, recordObj.table42Remarks)" v-if="userType===1&&(state===0||state===5)">
                {{ recordObj.table42Remarks ? '修改备注说明' : '备注说明' }}
              </el-button>
            </div>
            <el-table :data="list4_2" highlight-current-row v-loading="listLoading" style="width: 100%;" @selection-change="handleSelectionChange12" ref="multipleTable12">
              <el-table-column type="selection" width="60"/>
              <el-table-column prop="receiveYear" label="接收年份" width="100" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="receiveYear" />
                </template>
              </el-table-column>
              <el-table-column prop="unitName" label="单位名称" min-width="150">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="unitName" />
                </template>
              </el-table-column>
              <el-table-column prop="department" label="部门名称" width="120" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="department" />
                </template>
              </el-table-column>
              <el-table-column prop="post" label="工作岗位（职位）" width="150" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="post" />
                </template>
              </el-table-column>
              <el-table-column prop="realName" label="姓名" width="80" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="realName" />
                </template>
              </el-table-column>
              <el-table-column prop="school" label="院校" width="190" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="school" />
                </template>
              </el-table-column>
              <el-table-column prop="major" label="所学专业" width="200" align="center">
                <template slot-scope="scope">
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="major" />
                </template>
              </el-table-column>
              <el-table-column prop="inPost" label="是否在岗" width="90" align="center">
                <template slot-scope="scope">
                  <!-- {{scope.row.inPost?'是':'否'}} -->
                  <jihuaTooltipSix :theYear="theYear" :testTable="table4_2" :unitId="unitId" :rowData="scope.row" columnName="inPost" flag="2" />
                </template>
              </el-table-column>
              <el-table-column prop="remark" label="备注" width="150">
              </el-table-column>
              <el-table-column label="操作" width="120" v-if="userType===1&&(state===0||state===5)" key="edit7">
                <template slot-scope="scope">
                  <template>
                    <el-dropdown split-button  @click="handleDetail4(scope.row,null,2)" size="small" type="primary" :loading="btnLoading">
                      修改
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="handleDel4(scope.row.id)" >删除</el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </template>
                </template>
              </el-table-column>
            </el-table>
          </template>
        </el-tab-pane>
      </el-tabs>
    </template>
  </div>
</template>
<script>
import qs from 'qs'
import jihuaTooltip from './jihuaTooltip.vue'
import jihuaTooltipSix from './jihuaTooltipSix.vue'
export default {
  components: {
    jihuaTooltip,
    jihuaTooltipSix
  },
  props: {
    batchState: null,
    timestamp: '',
    userType: null,
    unitId: null,
    type: null,
    theYear: null,
    canAudit: null,
    unitBeijing: null
  },
  data () {
    return {
      table1_1: null,
      table1_2: null,
      table2_1: null,
      table3_1: null,
      table3_2: null,
      table4_1: null,
      table4_2: null,
      remarksByYear: '拟离退休人数',
      moveUpFlag1: false,
      moveDownFlag1: false,
      multipleSelection1: [],
      moveUpFlag2: false,
      moveDownFlag2: false,
      multipleSelection2: [],
      moveUpFlag3: false,
      moveDownFlag3: false,
      multipleSelection3: [],
      moveUpFlag4: false,
      moveDownFlag4: false,
      multipleSelection4: [],
      moveUpFlag5: false,
      moveDownFlag5: false,
      multipleSelection5: [],
      moveUpFlag6: false,
      moveDownFlag6: false,
      multipleSelection6: [],
      moveUpFlag7: false,
      moveDownFlag7: false,
      multipleSelection7: [],
      moveUpFlag8: false,
      moveDownFlag8: false,
      multipleSelection8: [],
      moveUpFlag9: false,
      moveDownFlag9: false,
      multipleSelection9: [],
      moveUpFlag10: false,
      moveDownFlag10: false,
      multipleSelection10: [],
      moveUpFlag11: false,
      moveDownFlag11: false,
      multipleSelection11: [],
      moveUpFlag12: false,
      moveDownFlag12: false,
      multipleSelection12: [],
      addLoading1: false,
      addLoading2: false,
      addLoading3: false,
      remarks: '',
      unitInfoFlag: 0,
      unitName: '',
      state: null,
      errorList: [],
      errorVisible: false,
      yearList: [],
      yearList2: [],
      yearForm: {startYear: null},
      yearFormVisible: false,
      yearFormRules1: {
        startYear: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      backForm: {remark: ''},
      backFormVisible: false,
      editForm: {},
      editFormRules1: {
        unitName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        authorizedPersonCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        authorizedLeaderCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        actualPersonCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        actualLeaderCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        retireesCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        lastYearBeijingBachelorCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        lastYearBeijingPostgraduateCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        lastYearBachelorCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        lastYearPostgraduateCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        thisYearDoctorCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        thisYearBeijingBachelorCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        thisYearBeijingPostgraduateCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        thisYearBachelorCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        thisYearPostgraduateCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        thisYearInServicePersonCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        beijingPostgraduateCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      fileListLoading: false,
      saveloading: false,
      files1: [],
      files1_2: [],
      files2: [],
      files3: [],
      files4: [],
      files5: [],
      files6: [],
      dialogTitle: '新增',
      editLoading: false,
      fileList: [],
      btnLoading: false,
      editForm1: {
        id: null,
        unitName: '',
        postNum: 0,
        leaderPostNum: 0,
        personNum: 0,
        leaderPersonNum: 0,
        retireeNum: 0,
        leaderRetireeNum: 0,
        countLastYearBeijing1: 0,
        countLastYearBeijing2: 0,
        countLastYearBeijing3: 0,
        countLastYearBeijing4: 0,
        countLastYearBeijing5: 0,
        countLastYear1: 0,
        countLastYear2: 0,
        countLastYear3: 0,
        countLastYear4: 0,
        countLastYear5: 0,
        countBeijing1: 0,
        countBeijing2: 0,
        countBeijing3: 0,
        countBeijing4: 0,
        countBeijing5: 0,
        count1: 0,
        count2: 0,
        count3: 0,
        count4: 0,
        count5: 0,
        sum1: 0,
        sum2: 0,
        sum3: 0,
        sum4: 0,
        personCount: 0
      },
      editForm2: {
        id: null,
        unitName: '',
        count1: 0,
        count2: 0,
        count3: 0,
        inPostCount1: 0,
        inPostCount2: 0,
        inPostCount3: 0,
        prop1: 0,
        prop2: 0,
        prop3: 0,
        institutional: [],
        receiveMode: [],
        receiveModeRemark: ''
      },
      editFormRules2: {
        unitName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        institutional: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        receiveMode: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      editForm3: {
        id: null,
        unitName: '',
        count111: 0,
        count112: 0,
        count113: 0,
        count114: 0,
        count115: 0,
        count121: 0,
        count122: 0,
        count123: 0,
        count124: 0,
        count125: 0,
        count211: 0,
        count212: 0,
        count213: 0,
        count214: 0,
        count215: 0,
        count221: 0,
        count222: 0,
        count223: 0,
        count224: 0,
        count225: 0,
        count311: 0,
        count312: 0,
        count313: 0,
        count314: 0,
        count315: 0,
        count321: 0,
        count322: 0,
        count323: 0,
        count324: 0,
        count325: 0,
        prop1: 0,
        prop2: 0,
        prop3: 0,
        sum11: 0,
        sum12: 0,
        sum21: 0,
        sum22: 0,
        sum31: 0,
        sum32: 0
      },
      editFormRules3: {
        unitName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleUndergraduateCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleUndergraduateCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleUndergraduateCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleMasterCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleMasterCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleMasterCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleDoctorCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleDoctorCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        settleDoctorCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostUndergraduateCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostUndergraduateCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostUndergraduateCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostMasterCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostMasterCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostMasterCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostDoctorCount1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostDoctorCount2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPostDoctorCount3: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      editForm4: {
        id: null,
        unitName: '',
        receiveYear: null,
        theYear: null,
        department: '',
        realName: null,
        idCardNo: null,
        post: '',
        school: '',
        major: '',
        inPost: null,
        inBeijing: null,
        remark: ''
      },
      editFormRules4: {
        unitName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        receiveYear: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        department: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        realName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        idCardNo: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        post: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        school: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        major: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inPost: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        inBeijing: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      editForm5: {
        id: null,
        unitName: '',
        department: '',
        post: '',
        major: '',
        countBeijing1: 0,
        countBeijing2: 0,
        countBeijing3: 0,
        countBeijing4: 0,
        countBeijing5: 0,
        count1: 0,
        count2: 0,
        count3: 0,
        count4: 0,
        count5: 0
      },
      editFormRules5: {
        unitName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        department: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        post: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        major: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        countBeijing1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        countBeijing2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        countBeijing3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        countBeijing4: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        countBeijing5: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        count1: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        count2: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        count3: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        count4: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        count5: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      editForm6: {
        id: null,
        unitName: '',
        department: '',
        post: '',
        personCount: 0,
        residenceRequirements: '',
        education: '',
        major: '',
        others: '',
        unitBeijing: '',
        remark: ''
      },
      editFormRules6: {
        unitName: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        department: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        post: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        personCount: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        residenceRequirements: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        education: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        major: [
          { required: true, message: '必填', trigger: 'blur' }
        ],
        unitBeijing: [
          { required: true, message: '必填', trigger: 'blur' }
        ]
      },
      theType1: null,
      unitBeijing1: null,
      unitBeijing3: null,
      unitBeijing4: null,
      unitBeijing5: null,
      editFormVisible1: false,
      editFormVisible2: false,
      editFormVisible3: false,
      editFormVisible4: false,
      editFormVisible5: false,
      editFormVisible6: false,
      addLoading: false,
      list1_1: [],
      list1_2: [],
      list1_3: [],
      list1_4: [],
      list2: [],
      list3_1: [],
      list3_2: [],
      list4_1: [],
      list4_2: [],
      list5_1: [],
      list5_2: [],
      list6: [],
      topersonlist: [],
      activeName: '6',
      listLoading: false,
      startYear: null,
      stepBatchId: null,
      institutionalOptions: [
        '未制定毕业生招聘接收工作标准和规范',
        '已建立本单位毕业生招聘接收工作标准和规范',
        '执行上级主管部门统一招聘接收工作标准和规范'
      ],
      receiveModeOptions: [
        '面向社会公开招聘',
        '校园招聘',
        '内部推荐',
        '其他（请注明）'
      ],
      recordObj: {
        table11Flag: 0,
        table12Flag: 0,
        table21Flag: 0,
        table31Flag: 0,
        table32Flag: 0,
        table41Flag: 0,
        table42Flag: 0
      },
      remarksFormVisible: false,
      remarksContent: '',
      remarksFlag: '',
      checkResult1: '',
      checkResult2: ''
    }
  },
  watch: {
    userType (val) {
      console.log(val)
    },
    type (val) {
      console.log(val)
    },
    unitId (val) {
      console.log(val)
    },
    theYear (val) {
    },
    batchState (val) {
      console.log(val)
    },
    canAudit (val) {
      console.log(val)
    },
    unitBeijing (val) {
      console.log(val)
    },
    timestamp (val) {
      this.init()
    },
    list1_1 () {
      this.getCheckResult1(1)
    },
    list1_2 () {
      this.getCheckResult2(1)
    },
    list2 () {
      this.getCheckResult1(2)
    },
    list3_1 () {
      this.getCheckResult1(3)
    },
    list3_2 () {
      this.getCheckResult2(3)
    },
    list4_1 () {
      this.getCheckResult1(4)
    },
    list4_2 () {
      this.getCheckResult2(4)
    }
  },
  methods: {
    getCheckResult1 (tableNum) {
      let unitID = ''
      if (this.unitId === undefined) {
        unitID = ''
      } else {
        unitID = this.unitId
      }
      this.$http.get(this.$http.defaults.recruitAPI + `api/recruitBusTableFlag/getCheckResult?theYear=${this.theYear}&unitId=${unitID}&tableFlagKey=table${tableNum}-1`).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          if (response.data.result.length > 0) {
            const arr = []
            tableNum === 4 ? response.data.result.forEach(item => arr.push(item.realName + '(' + item.idCardNo + ')')) : response.data.result.forEach(item => arr.push(item.unitName))
            this.checkResult1 = arr.join('、') + '数据未填写'
          } else {
            this.checkResult1 = ''
          }
          console.log(response.data.result)
        } else {
          console.log('获取失败:' + response.data.message)
          this.$message({
            message: '获取失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '获取失败:' + error,
          type: 'error'
        })
      })
    },
    getCheckResult2 (tableNum) {
      let unitID = ''
      if (this.unitId === undefined) {
        unitID = ''
      } else {
        unitID = this.unitId
      }
      this.$http.get(this.$http.defaults.recruitAPI + `api/recruitBusTableFlag/getCheckResult?theYear=${this.theYear}&unitId=${unitID}&tableFlagKey=table${tableNum}-2`).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          if (response.data.result.length > 0) {
            const arr = []
            tableNum === 4 ? response.data.result.forEach(item => arr.push(item.realName + '(' + item.idCardNo + ')')) : response.data.result.forEach(item => arr.push(item.unitName))
            this.checkResult2 = arr.join('、') + '数据未填写'
          } else {
            this.checkResult2 = ''
          }
          console.log(response.data.result)
        } else {
          console.log('获取失败:' + response.data.message)
          this.$message({
            message: '获取失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '获取失败:' + error,
          type: 'error'
        })
      })
    },
    handleRemarks (flag, text) {
      this.remarksFlag = flag
      this.remarksContent = text
      this.remarksFormVisible = true
    },
    setRemarks () {
      const param = { ...this.recordObj }
      if (this.remarksFlag === 11) {
        param.table11Remarks = this.remarksContent
      } else if (this.remarksFlag === 12) {
        param.table12Remarks = this.remarksContent
      } else if (this.remarksFlag === 21) {
        param.table21Remarks = this.remarksContent
      } else if (this.remarksFlag === 31) {
        param.table31Remarks = this.remarksContent
      } else if (this.remarksFlag === 32) {
        param.table32Remarks = this.remarksContent
      } else if (this.remarksFlag === 41) {
        param.table41Remarks = this.remarksContent
      } else if (this.remarksFlag === 42) {
        param.table42Remarks = this.remarksContent
      }
      this.btnLoading = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusTableFlag/save`, param).then(response => {
        this.btnLoading = false
        if (response.data.success === true) {
          this.$message({
            message: '操作成功',
            type: 'success'
          })
          this.remarksFormVisible = false
          this.getMaxRecord()
        } else {
          console.log('操作失败:' + response.data.message)
          this.$message({
            message: '操作失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        this.btnLoading = false
        console.log(error)
        this.$message({
          message: '操作失败:' + error,
          type: 'error'
        })
      })
    },
    getMaxRecord () {
      let unitID = ''
      if (this.unitId === undefined) {
        unitID = ''
      } else {
        unitID = this.unitId
      }
      this.$http.get(this.$http.defaults.recruitAPI + `api/recruitBusTableFlag/getMaxRecord?theYear=${this.theYear}&unitId=${unitID}`).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          if (response.data.result) {
            this.recordObj = response.data.result
          } else {
            for (let key in this.recordObj) {
              this.recordObj[key] = 1
            }
          }
          console.log(this.recordObj)
        } else {
          console.log('获取失败:' + response.data.message)
          this.$message({
            message: '获取失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '获取失败:' + error,
          type: 'error'
        })
      })
    },
    getRemarksByYear () {
      this.$http.get(this.$http.defaults.recruitAPI + `api/recruitBusAnnual/getRetireeDateRemarksByYear?theYear=${this.theYear}`).then(response => {
        if (response.data.success === true) {
          if (response.data.result) {
            this.remarksByYear = '拟离退休人数（' + response.data.result + '）'
          } else {
            this.remarksByYear = '拟离退休人数'
          }
          console.log(this.remarksByYear)
        }
      }).catch(error => {
        console.log(error)
      })
    },
    headerCellClassName ({row, column, rowIndex, columnIndex}) {
      if (rowIndex === 0 && columnIndex === 2) {
        return 'th-l-1'
      }
      if (rowIndex === 1 && columnIndex === 0) {
        return 'th-l-2'
      }
      if (rowIndex === 1 && columnIndex === 1) {
        return 'th-l-3'
      }
      if (rowIndex === 0 && columnIndex === 3) {
        return 'th-l-1'
      }
      if (rowIndex === 1 && columnIndex === 2) {
        return 'th-l-2'
      }
      if (rowIndex === 1 && columnIndex === 3) {
        return 'th-l-3'
      }
      if (rowIndex === 0 && columnIndex === 4) {
        return 'th-l-1'
      }
      if (rowIndex === 1 && columnIndex === 4) {
        return 'th-l-2'
      }
      if (rowIndex === 1 && columnIndex === 5) {
        return 'th-l-3'
      }
      return 'costum_' + rowIndex + '_' + columnIndex
    },
    downloadTemplate (unitBeijing) {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable5/getTemplate?unitBeijing=' + unitBeijing + '&theYear=' + this.theYear)
    },
    downloadTemplate2 () {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable6/getTemplate?theYear=' + this.theYear)
    },
    downloadTemplate3 (type, unitBeijing) {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable1/getTemplate?unitBeijing=' + unitBeijing + '&theYear=' + this.theYear + '&theType=' + type)
    },
    downloadTemplate4 () {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable2/getTemplate?theYear=' + this.theYear)
    },
    downloadTemplate5 (unitBeijing) {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable3/getTemplate?unitBeijing=' + unitBeijing + '&theYear=' + this.theYear)
    },
    downloadTemplate6 (unitBeijing) {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable4/getTemplate?unitBeijing=' + unitBeijing + '&theYear=' + this.theYear)
    },
    handleSelectionChange1 (val) {
      this.moveUpFlag1 = false
      this.moveDownFlag1 = false
      this.multipleSelection1 = val
      if (this.multipleSelection1.length === 1) {
        this.moveUpFlag1 = true
        this.moveDownFlag1 = true
        if (this.list5_1.findIndex(item => item.id === this.multipleSelection1[0].id) === 0) {
          this.moveUpFlag1 = false
        }
        if (this.list5_1.findIndex(item => item.id === this.multipleSelection1[0].id) === this.list5_1.length - 1) {
          this.moveDownFlag1 = false
        }
      }
    },
    handleSelectionChange2 (val) {
      this.moveUpFlag2 = false
      this.moveDownFlag2 = false
      this.multipleSelection2 = val
      if (this.multipleSelection2.length === 1) {
        this.moveUpFlag2 = true
        this.moveDownFlag2 = true
        if (this.list5_2.findIndex(item => item.id === this.multipleSelection2[0].id) === 0) {
          this.moveUpFlag2 = false
        }
        if (this.list5_2.findIndex(item => item.id === this.multipleSelection2[0].id) === this.list5_2.length - 1) {
          this.moveDownFlag2 = false
        }
      }
    },
    handleSelectionChange3 (val) {
      this.moveUpFlag3 = false
      this.moveDownFlag3 = false
      this.multipleSelection3 = val
      if (this.multipleSelection3.length === 1) {
        this.moveUpFlag3 = true
        this.moveDownFlag3 = true
        if (this.list6.findIndex(item => item.id === this.multipleSelection3[0].id) === 0) {
          this.moveUpFlag3 = false
        }
        if (this.list6.findIndex(item => item.id === this.multipleSelection3[0].id) === this.list6.length - 1) {
          this.moveDownFlag3 = false
        }
      }
    },
    handleSelectionChange4 (val) {
      this.moveUpFlag4 = false
      this.moveDownFlag4 = false
      this.multipleSelection4 = val
      if (this.multipleSelection4.length === 1) {
        this.moveUpFlag4 = true
        this.moveDownFlag4 = true
        if (this.list1_1.findIndex(item => item.id === this.multipleSelection4[0].id) === 0) {
          this.moveUpFlag4 = false
        }
        if (this.list1_1.findIndex(item => item.id === this.multipleSelection4[0].id) === this.list1_1.length - 1) {
          this.moveDownFlag4 = false
        }
      }
    },
    handleSelectionChange5 (val) {
      this.moveUpFlag5 = false
      this.moveDownFlag5 = false
      this.multipleSelection5 = val
      if (this.multipleSelection5.length === 1) {
        this.moveUpFlag5 = true
        this.moveDownFlag5 = true
        if (this.list1_2.findIndex(item => item.id === this.multipleSelection5[0].id) === 0) {
          this.moveUpFlag5 = false
        }
        if (this.list1_2.findIndex(item => item.id === this.multipleSelection5[0].id) === this.list1_2.length - 1) {
          this.moveDownFlag5 = false
        }
      }
    },
    handleSelectionChange6 (val) {
      this.moveUpFlag6 = false
      this.moveDownFlag6 = false
      this.multipleSelection6 = val
      if (this.multipleSelection6.length === 1) {
        this.moveUpFlag6 = true
        this.moveDownFlag6 = true
        if (this.list1_3.findIndex(item => item.id === this.multipleSelection6[0].id) === 0) {
          this.moveUpFlag6 = false
        }
        if (this.list1_3.findIndex(item => item.id === this.multipleSelection6[0].id) === this.list1_3.length - 1) {
          this.moveDownFlag6 = false
        }
      }
    },
    handleSelectionChange7 (val) {
      this.moveUpFlag7 = false
      this.moveDownFlag7 = false
      this.multipleSelection7 = val
      if (this.multipleSelection7.length === 1) {
        this.moveUpFlag7 = true
        this.moveDownFlag7 = true
        if (this.list1_4.findIndex(item => item.id === this.multipleSelection7[0].id) === 0) {
          this.moveUpFlag7 = false
        }
        if (this.list1_4.findIndex(item => item.id === this.multipleSelection7[0].id) === this.list1_4.length - 1) {
          this.moveDownFlag7 = false
        }
      }
    },
    handleSelectionChange8 (val) {
      this.moveUpFlag8 = false
      this.moveDownFlag8 = false
      this.multipleSelection8 = val
      if (this.multipleSelection8.length === 1) {
        this.moveUpFlag8 = true
        this.moveDownFlag8 = true
        if (this.list2.findIndex(item => item.id === this.multipleSelection8[0].id) === 0) {
          this.moveUpFlag8 = false
        }
        if (this.list2.findIndex(item => item.id === this.multipleSelection8[0].id) === this.list2.length - 1) {
          this.moveDownFlag8 = false
        }
      }
    },
    handleSelectionChange9 (val) {
      this.moveUpFlag9 = false
      this.moveDownFlag9 = false
      this.multipleSelection9 = val
      if (this.multipleSelection9.length === 1) {
        this.moveUpFlag9 = true
        this.moveDownFlag9 = true
        if (this.list3_1.findIndex(item => item.id === this.multipleSelection9[0].id) === 0) {
          this.moveUpFlag9 = false
        }
        if (this.list3_1.findIndex(item => item.id === this.multipleSelection9[0].id) === this.list3_1.length - 1) {
          this.moveDownFlag9 = false
        }
      }
    },
    handleSelectionChange10 (val) {
      this.moveUpFlag10 = false
      this.moveDownFlag10 = false
      this.multipleSelection10 = val
      if (this.multipleSelection10.length === 1) {
        this.moveUpFlag10 = true
        this.moveDownFlag10 = true
        if (this.list3_2.findIndex(item => item.id === this.multipleSelection10[0].id) === 0) {
          this.moveUpFlag10 = false
        }
        if (this.list3_2.findIndex(item => item.id === this.multipleSelection10[0].id) === this.list3_2.length - 1) {
          this.moveDownFlag10 = false
        }
      }
    },
    handleSelectionChange11 (val) {
      this.moveUpFlag11 = false
      this.moveDownFlag11 = false
      this.multipleSelection11 = val
      if (this.multipleSelection11.length === 1) {
        this.moveUpFlag11 = true
        this.moveDownFlag11 = true
        if (this.list4_1.findIndex(item => item.id === this.multipleSelection11[0].id) === 0) {
          this.moveUpFlag11 = false
        }
        if (this.list4_1.findIndex(item => item.id === this.multipleSelection11[0].id) === this.list4_1.length - 1) {
          this.moveDownFlag11 = false
        }
      }
    },
    handleSelectionChange12 (val) {
      this.moveUpFlag12 = false
      this.moveDownFlag12 = false
      this.multipleSelection12 = val
      if (this.multipleSelection12.length === 1) {
        this.moveUpFlag12 = true
        this.moveDownFlag12 = true
        if (this.list4_2.findIndex(item => item.id === this.multipleSelection12[0].id) === 0) {
          this.moveUpFlag12 = false
        }
        if (this.list4_2.findIndex(item => item.id === this.multipleSelection12[0].id) === this.list4_2.length - 1) {
          this.moveDownFlag12 = false
        }
      }
    },
    moveData1 (flag) {
      let para = {
        id: this.multipleSelection1[0].id,
        up: flag
      }
      this.addLoading1 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable5/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading1 = false
          this.getListCommon2('recruitBusPlanDeclareTable5', null, 1, 'list5_1', this.multipleSelection1[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading1 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData2 (flag) {
      let para = {
        id: this.multipleSelection2[0].id,
        up: flag
      }
      this.addLoading2 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable5/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading2 = false
          this.getListCommon2('recruitBusPlanDeclareTable5', null, 2, 'list5_2', this.multipleSelection2[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading2 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading2 = false
      })
    },
    moveData3 (flag) {
      let para = {
        id: this.multipleSelection3[0].id,
        up: flag
      }
      this.addLoading3 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable6/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading3 = false
          this.getListCommon2('recruitBusPlanDeclareTable6', null, 2, 'list6', this.multipleSelection3[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading3 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading3 = false
      })
    },
    moveData4 (flag) {
      let para = {
        id: this.multipleSelection4[0].id,
        up: flag
      }
      this.addLoading1 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable1/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading1 = false
          this.getListCommon('recruitBusPlanDeclareTable1', 1, 1, 'list1_1', this.multipleSelection4[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading1 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData5 (flag) {
      let para = {
        id: this.multipleSelection5[0].id,
        up: flag
      }
      this.addLoading2 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable1/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading2 = false
          this.getListCommon('recruitBusPlanDeclareTable1', 1, 2, 'list1_2', this.multipleSelection5[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading2 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData6 (flag) {
      let para = {
        id: this.multipleSelection6[0].id,
        up: flag
      }
      this.addLoading1 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable1/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading1 = false
          this.getListCommon('recruitBusPlanDeclareTable1', 2, 1, 'list1_3', this.multipleSelection6[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading1 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData7 (flag) {
      let para = {
        id: this.multipleSelection7[0].id,
        up: flag
      }
      this.addLoading2 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable1/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading2 = false
          this.getListCommon('recruitBusPlanDeclareTable1', 2, 2, 'list1_4', this.multipleSelection7[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading2 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData8 (flag) {
      let para = {
        id: this.multipleSelection8[0].id,
        up: flag
      }
      this.addLoading1 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable2/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading1 = false
          this.getListCommon('recruitBusPlanDeclareTable2', null, null, 'list2', this.multipleSelection8[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading1 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData9 (flag) {
      let para = {
        id: this.multipleSelection9[0].id,
        up: flag
      }
      this.addLoading1 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable3/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading1 = false
          this.getListCommon('recruitBusPlanDeclareTable3', 1, 1, 'list3_1', this.multipleSelection9[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading1 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData10 (flag) {
      let para = {
        id: this.multipleSelection10[0].id,
        up: flag
      }
      this.addLoading2 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable3/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading2 = false
          this.getListCommon('recruitBusPlanDeclareTable3', 1, 2, 'list3_2', this.multipleSelection10[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading2 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading2 = false
      })
    },
    moveData11 (flag) {
      let para = {
        id: this.multipleSelection11[0].id,
        up: flag
      }
      this.addLoading1 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable4/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading1 = false
          this.getListCommon('recruitBusPlanDeclareTable4', 1, 1, 'list4_1', this.multipleSelection11[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading1 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading1 = false
      })
    },
    moveData12 (flag) {
      let para = {
        id: this.multipleSelection12[0].id,
        up: flag
      }
      this.addLoading2 = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable4/updateOrder`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.addLoading2 = false
          this.getListCommon('recruitBusPlanDeclareTable4', 1, 2, 'list4_2', this.multipleSelection12[0].id)
        } else {
          console.log('调整顺序失败:' + response.data.message)
          this.$message({
            message: '调整顺序失败:' + response.data.message,
            type: 'error'
          })
          this.addLoading2 = false
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '调整顺序失败:' + error,
          type: 'error'
        })
        this.addLoading2 = false
      })
    },
    baseInfo (id) {
      this.$router.push({name: 'recruitUnitBaseInfo'})
    },
    personInfo (id) {
      this.$router.push({name: 'recruitUnitPerson'})
    },
    getUnitInfo () {
      this.$http
        .get(this.$http.defaults.recruitAPI + `api/recruitBusUnitInfo/getCurrentUnitInfo`)
        .then(response => {
          this.unitInfoFlag = !!response.data.result
        })
        .catch(error => {
          this.$message({
            message: '获取失败:' + error,
            type: 'error'
          })
        })
    },
    getUnitName () {
      this.$http
        .get(this.$http.defaults.recruitAPI + `api/recruitBusUnit/getCurrentUnitName`)
        .then(response => {
          this.unitName = response.data.result
        })
        .catch(error => {
          this.$message({
            message: '获取失败:' + error,
            type: 'error'
          })
        })
    },
    saveTableData () {
      this.$confirm('确认同步表2-6数据吗?', '提示', {
        type: 'warning'
      }).then(() => {
        this.btnLoading = true
        this.$http.get(this.$http.defaults.recruitAPI + `api/recruitBusUnit/saveTableData?theYear=` + this.theYear).then(response => {
          this.btnLoading = false
          if (response.data.success === true) {
            this.$message({
              message: '操作成功',
              type: 'success'
            })
          } else {
            console.log('操作失败:' + response.data.message)
            this.$message({
              message: '操作失败:' + response.data.message,
              type: 'error'
            })
          }
        }).catch(error => {
          this.btnLoading = false
          console.log(error)
          this.$message({
            message: '操作失败:' + error,
            type: 'error'
          })
        })
      })
    },
    getImportList (res) {
      this.saveloading = false
      console.log(res)
      if (res.success) {
        if (res.result && res.result.length > 0) {
          this.errorList = res.result
          this.errorVisible = true
        } else {
          this.$message({
            message: `成功导入${res.result}条数据！`,
            type: 'success'
          })
          this.getList5()
        }
      } else {
        this.$message({
          message: '导入失败:' + res.message,
          type: 'error'
        })
      }
    },
    getImportList1 (res) {
      this.saveloading = false
      if (res.success) {
        if (res.result && res.result.length > 0) {
          this.errorList = res.result
          this.errorVisible = true
        } else {
          this.$message({
            message: `成功导入${res.result}条数据！`,
            type: 'success'
          })
          this.getList1()
        }
      } else {
        this.$message({
          message: '导入失败:' + res.message,
          type: 'error'
        })
      }
    },
    getImportList2 (res) {
      this.saveloading = false
      if (res.success) {
        if (res.result && res.result.length > 0) {
          this.errorList = res.result
          this.errorVisible = true
        } else {
          this.$message({
            message: `成功导入${res.result}条数据！`,
            type: 'success'
          })
          this.getList2()
        }
      } else {
        this.$message({
          message: '导入失败:' + res.message,
          type: 'error'
        })
      }
    },
    getImportList3 (res) {
      this.saveloading = false
      if (res.success) {
        if (res.result && res.result.length > 0) {
          this.errorList = res.result
          this.errorVisible = true
        } else {
          this.$message({
            message: `成功导入${res.result}条数据！`,
            type: 'success'
          })
          this.getList3()
        }
      } else {
        this.$message({
          message: '导入失败:' + res.message,
          type: 'error'
        })
      }
    },
    getImportList4 (res) {
      this.saveloading = false
      if (res.success) {
        if (res.result && res.result.length > 0) {
          this.errorList = res.result
          this.errorVisible = true
        } else {
          this.$message({
            message: `成功导入${res.result}条数据！`,
            type: 'success'
          })
          this.getList4()
        }
      } else {
        this.$message({
          message: '导入失败:' + res.message,
          type: 'error'
        })
      }
    },
    beforeAvatarUpload (file) {
      console.log('文件类型')
      console.log(file.name)
      const isFormat = file.name.indexOf('.xlsx') > 0
      // const isLt5M = file.size / 1024 / 1024 < 500
      if (!isFormat) {
        this.$message.error('上传文件只能是 .xlsx 格式!')
      }
      return isFormat
    },
    export1 (type, unitBeijing) {
      let para = {
        unitId: this.unitId,
        theYear: this.theYear,
        theType: type,
        unitBeijing: unitBeijing
      }
      console.log(para)
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable1/exportTables?' + qs.stringify(para))
    },
    export2 () {
      let para = {
        unitId: this.unitId,
        theYear: this.theYear
      }
      console.log(para)
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable2/exportTables?' + qs.stringify(para))
    },
    export3 (unitBeijing) {
      let para = {
        unitId: this.unitId,
        theYear: this.theYear,
        unitBeijing: unitBeijing
      }
      console.log(para)
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable3/exportTables?' + qs.stringify(para))
    },
    export4 (unitBeijing) {
      let para = {
        unitId: this.unitId,
        theYear: this.theYear,
        unitBeijing: unitBeijing
      }
      console.log(para)
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable4/exportTables?' + qs.stringify(para))
    },
    export5 (unitBeijing) {
      let para = {
        unitId: this.unitId,
        theYear: this.theYear,
        unitBeijing: unitBeijing
      }
      console.log(para)
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable5/export?' + qs.stringify(para))
    },
    export6 () {
      let para = {
        unitId: this.unitId,
        theYear: this.theYear
      }
      console.log(para)
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitBusPlanDeclareTable6/export?' + qs.stringify(para))
    },
    editStartYear () {
      this.yearForm.startYear = parseInt(this.startYear)
      this.yearFormVisible = true
    },
    setStartYear () {
      let para = {
        startYear: this.yearForm.startYear,
        id: this.unitBatchId
      }
      this.btnLoading = true
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusUnitBatch/save`, para).then(response => {
        this.btnLoading = false
        if (response.data.success === true) {
          this.$message({
            message: '操作成功',
            type: 'success'
          })
          this.$emit('getDetails')
          this.yearFormVisible = false
        } else {
          console.log('操作失败:' + response.data.message)
          this.$message({
            message: '操作失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        this.btnLoading = false
        console.log(error)
        this.$message({
          message: '操作失败:' + error,
          type: 'error'
        })
      })
    },
    showBack () {
      this.backFormVisible = true
      this.backForm.remark = ''
    },
    init () {
      this.startYear = parseInt(this.theYear) - 4
      let startYear = parseInt(this.startYear)
      let theYear = parseInt(this.theYear)
      this.yearForm.startYear = startYear
      this.yearList = []
      for (let i = theYear - 2; i > theYear - 5; i--) {
        console.log(i)
        this.yearList.push(i)
      }
      this.yearList2 = []
      for (let i = theYear - 2; i >= theYear - 4; i--) {
        console.log(i)
        this.yearList2.push(i)
      }
      this.getStepBatch()
      this.getList5()
      this.getTablesArray()
      this.getMaxRecord()
      if (this.userType === 1) {
        this.getUnitName()
      }
      this.getUnitInfo()
      this.getFileList('bus_plan_declare', 'files1')
    },
    getTablesArray () {
      let unitID = ''
      if (this.unitId === undefined) {
        unitID = ''
      } else {
        unitID = this.unitId
      }
      this.$http.get(this.$http.defaults.recruitAPI + `api/recruitBusUnit/getTablesArray?theYear=${this.theYear}&unitId=${unitID}`).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.table1_1 = response.data.result['table1-1']
          this.table1_2 = response.data.result['table1-2']
          this.table2_1 = response.data.result['table2-1']
          this.table3_1 = response.data.result['table3-1']
          this.table3_2 = response.data.result['table3-2']
          this.table4_1 = response.data.result['table4-1']
          this.table4_2 = response.data.result['table4-2']
        } else {
          console.log('获取失败:' + response.data.message)
          this.$message({
            message: '获取失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '获取失败:' + error,
          type: 'error'
        })
      })
    },
    getStepBatch () {
      let para = {
        'pageNum': 1,
        'pageSize': 1,
        'step': 'bus_plan_declare',
        'theYear': this.theYear,
        'unitId': this.unitId
      }
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPostStepBatch/queryByPage`, para).then(response => {
        console.log(response.data.success)
        if (response.data.success === true) {
          this.state = response.data.result.records[0] ? response.data.result.records[0].state : 0
          this.stepBatchId = response.data.result.records[0] ? response.data.result.records[0].id : null
          this.remarks = response.data.result.records[0] ? response.data.result.records[0].remarks : ''
          console.log('this.remarks')
          console.log(this.remarks)
        } else {
          console.log('获取当前环节状态失败:' + response.data.message)
          this.$message({
            message: '获取当前环节状态失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '获取当前环节状态失败:' + error,
          type: 'error'
        })
      })
    },
    editFormSubmit1 () {
      this.$refs.editForm1.validate((valid) => {
        if (valid) {
          this.editLoading = true
          let para = { ...this.editForm1 }
          para.theYear = this.theYear
          para.theType = this.theType1
          para.unitBeijing = this.unitBeijing1
          para.sum1 = this.editForm1.countLastYearBeijing1 + this.editForm1.countLastYearBeijing2 + this.editForm1.countLastYearBeijing3 + this.editForm1.countLastYearBeijing4 + this.editForm1.countLastYearBeijing5
          para.sum2 = this.editForm1.countLastYear1 + this.editForm1.countLastYear2 + this.editForm1.countLastYear3 + this.editForm1.countLastYear4 + this.editForm1.countLastYear5
          para.sum3 = this.editForm1.countBeijing1 + this.editForm1.countBeijing2 + this.editForm1.countBeijing3 + this.editForm1.countBeijing4 + this.editForm1.countBeijing5
          para.sum4 = this.editForm1.count1 + this.editForm1.count2 + this.editForm1.count3 + this.editForm1.count4 + this.editForm1.count5
          para.prop1 = ((this.editForm1.countLastYearBeijing1 + this.editForm1.countLastYearBeijing2 + this.editForm1.countLastYearBeijing3 + this.editForm1.countLastYearBeijing4 + this.editForm1.countLastYearBeijing5 + this.editForm1.countLastYear1 + this.editForm1.countLastYear2 + this.editForm1.countLastYear3 + this.editForm1.countLastYear4 + this.editForm1.countLastYear5) ? (100 * (this.editForm1.countLastYearBeijing1 + this.editForm1.countLastYearBeijing2 + this.editForm1.countLastYearBeijing3 + this.editForm1.countLastYearBeijing4 + this.editForm1.countLastYearBeijing5) / (this.editForm1.countLastYearBeijing1 + this.editForm1.countLastYearBeijing2 + this.editForm1.countLastYearBeijing3 + this.editForm1.countLastYearBeijing4 + this.editForm1.countLastYearBeijing5 + this.editForm1.countLastYear1 + this.editForm1.countLastYear2 + this.editForm1.countLastYear3 + this.editForm1.countLastYear4 + this.editForm1.countLastYear5)).toFixed(1) : '0.0') + '%'
          para.prop2 = ((this.editForm1.countBeijing1 + this.editForm1.countBeijing2 + this.editForm1.countBeijing3 + this.editForm1.countBeijing4 + this.editForm1.countBeijing5 + this.editForm1.count1 + this.editForm1.count2 + this.editForm1.count3 + this.editForm1.count4 + this.editForm1.count5) ? (100 * (this.editForm1.countBeijing1 + this.editForm1.countBeijing2 + this.editForm1.countBeijing3 + this.editForm1.countBeijing4 + this.editForm1.countBeijing5) / (this.editForm1.countBeijing1 + this.editForm1.countBeijing2 + this.editForm1.countBeijing3 + this.editForm1.countBeijing4 + this.editForm1.countBeijing5 + this.editForm1.count1 + this.editForm1.count2 + this.editForm1.count3 + this.editForm1.count4 + this.editForm1.count5)).toFixed(1) : '0.0') + '%'
          console.log(para)
          this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable1/save`, para).then(response => {
            console.log(response.data.success)
            if (response.data.success === true) {
              this.$message({
                message: '保存成功',
                type: 'success'
              })
              this.editFormVisible1 = false
              this.editLoading = false
              this.getList1()
            } else {
              console.log('保存失败:' + response.data.message)
              this.$message({
                message: '保存失败:' + response.data.message,
                type: 'error'
              })
              this.editLoading = false
            }
          }).catch(error => {
            console.log(error)
            this.$message({
              message: '保存失败:' + error,
              type: 'error'
            })
            this.editLoading = false
          })
        }
      })
    },
    createCheckBoxFun (checkBoxOption, param) {
      let result = []
      checkBoxOption.forEach(item => {
        const str = param.find(it => it === item)
        if (str) result.push(str)
      })
      if (result[result.length - 1] === '其他（请注明）') {
        result[result.length - 1] = '其他：' + this.editForm2.receiveModeRemark
      }
      result = result.join('\r\n')
      return result
    },
    editFormSubmit2 () {
      if (this.editForm2.receiveMode.includes('其他（请注明）') && this.editForm2.receiveModeRemark === '') {
        this.$message({
          message: '毕业生招聘接收方式如选其他，请填写文字注明具体接收方式',
          type: 'error'
        })
        return false
      }
      this.$refs.editForm2.validate((valid) => {
        if (valid) {
          this.editLoading = true
          let para = { ...this.editForm2 }
          para.theYear = this.theYear
          para.institutional = this.createCheckBoxFun(this.institutionalOptions, this.editForm2.institutional)
          para.receiveMode = this.createCheckBoxFun(this.receiveModeOptions, this.editForm2.receiveMode)
          para.prop1 = (this.editForm2.count1 ? (100 * this.editForm2.inPostCount1 / this.editForm2.count1).toFixed(1) : '0.0') + '%'
          para.prop2 = (this.editForm2.count2 ? (100 * this.editForm2.inPostCount2 / this.editForm2.count2).toFixed(1) : '0.0') + '%'
          para.prop3 = (this.editForm2.count3 ? (100 * this.editForm2.inPostCount3 / this.editForm2.count3).toFixed(1) : '0.0') + '%'
          this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable2/save`, para).then(response => {
            console.log(response.data.success)
            if (response.data.success === true) {
              this.$message({
                message: '保存成功',
                type: 'success'
              })
              this.editFormVisible2 = false
              this.editLoading = false
              this.getList2()
            } else {
              console.log('保存失败:' + response.data.message)
              this.$message({
                message: '保存失败:' + response.data.message,
                type: 'error'
              })
              this.editLoading = false
            }
          }).catch(error => {
            console.log(error)
            this.$message({
              message: '保存失败:' + error,
              type: 'error'
            })
            this.editLoading = false
          })
        }
      })
    },
    editFormSubmit3 () {
      this.$refs.editForm3.validate((valid) => {
        if (valid) {
          this.editLoading = true
          let para = { ...this.editForm3 }
          para.theYear = this.theYear
          para.unitBeijing = this.unitBeijing3
          para.sum11 = this.editForm3.count111 + this.editForm3.count112 + this.editForm3.count113 + this.editForm3.count114 + this.editForm3.count115
          para.sum12 = this.editForm3.count121 + this.editForm3.count122 + this.editForm3.count123 + this.editForm3.count124 + this.editForm3.count125
          para.sum21 = this.editForm3.count211 + this.editForm3.count212 + this.editForm3.count213 + this.editForm3.count214 + this.editForm3.count215
          para.sum22 = this.editForm3.count221 + this.editForm3.count222 + this.editForm3.count223 + this.editForm3.count224 + this.editForm3.count225
          para.sum31 = this.editForm3.count311 + this.editForm3.count312 + this.editForm3.count313 + this.editForm3.count314 + this.editForm3.count315
          para.sum32 = this.editForm3.count321 + this.editForm3.count322 + this.editForm3.count323 + this.editForm3.count324 + this.editForm3.count325
          para.prop1 = ((this.editForm3.count111 + this.editForm3.count112 + this.editForm3.count113 + this.editForm3.count114 + this.editForm3.count115) ? ((this.editForm3.count121 + this.editForm3.count122 + this.editForm3.count123 + this.editForm3.count124 + this.editForm3.count125) * 100 / (this.editForm3.count111 + this.editForm3.count112 + this.editForm3.count113 + this.editForm3.count114 + this.editForm3.count115)).toFixed(1) : '0.0') + '%'
          para.prop2 = ((this.editForm3.count211 + this.editForm3.count212 + this.editForm3.count213 + this.editForm3.count214 + this.editForm3.count215) ? ((this.editForm3.count221 + this.editForm3.count222 + this.editForm3.count223 + this.editForm3.count224 + this.editForm3.count225) * 100 / (this.editForm3.count211 + this.editForm3.count212 + this.editForm3.count213 + this.editForm3.count214 + this.editForm3.count215)).toFixed(1) : '0.0') + '%'
          para.prop3 = ((this.editForm3.count311 + this.editForm3.count312 + this.editForm3.count313 + this.editForm3.count314 + this.editForm3.count315) ? ((this.editForm3.count321 + this.editForm3.count322 + this.editForm3.count323 + this.editForm3.count324 + this.editForm3.count325) * 100 / (this.editForm3.count311 + this.editForm3.count312 + this.editForm3.count313 + this.editForm3.count314 + this.editForm3.count315)).toFixed(1) : '0.0') + '%'
          this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable3/save`, para).then(response => {
            console.log(response.data.success)
            if (response.data.success === true) {
              this.$message({
                message: '保存成功',
                type: 'success'
              })
              this.editFormVisible3 = false
              this.editLoading = false
              this.getList3()
            } else {
              console.log('保存失败:' + response.data.message)
              this.$message({
                message: '保存失败:' + response.data.message,
                type: 'error'
              })
              this.editLoading = false
            }
          }).catch(error => {
            console.log(error)
            this.$message({
              message: '保存失败:' + error,
              type: 'error'
            })
            this.editLoading = false
          })
        }
      })
    },
    editFormSubmit4 () {
      this.$refs.editForm4.validate((valid) => {
        if (valid) {
          this.editLoading = true
          let para = {
            id: this.editForm4.id,
            unitName: this.editForm4.unitName,
            unitBatchId: this.unitBatchId,
            receiveYear: this.editForm4.receiveYear,
            department: this.editForm4.department,
            realName: this.editForm4.realName,
            idCardNo: this.editForm4.idCardNo,
            post: this.editForm4.post,
            school: this.editForm4.school,
            major: this.editForm4.major,
            inPost: this.editForm4.inPost,
            inBeijing: this.editForm4.inBeijing,
            remark: this.editForm4.remark,
            unitBeijing: this.unitBeijing4,
            theYear: this.theYear
          }
          console.log(para)
          this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable4/save`, para).then(response => {
            console.log(response.data.success)
            if (response.data.success === true) {
              this.$message({
                message: '保存成功',
                type: 'success'
              })
              this.editFormVisible4 = false
              this.editLoading = false
              this.getList4()
            } else {
              console.log('保存失败:' + response.data.message)
              this.$message({
                message: '保存失败:' + response.data.message,
                type: 'error'
              })
              this.editLoading = false
            }
          }).catch(error => {
            console.log(error)
            this.$message({
              message: '保存失败:' + error,
              type: 'error'
            })
            this.editLoading = false
          })
        }
      })
    },
    editFormSubmit5 () {
      this.$refs.editForm5.validate((valid) => {
        if (valid) {
          let reg = /^[\u4e00-\u9fa5]+\([\da-zA-Z]+\)(;[\u4e00-\u9fa5]+\([\da-zA-Z]+\))*$/g
          this.editForm5.major = this.editForm5.major.toString().replace(/（/g, '(').replace(/）/g, ')').replace(/；/g, ';')
          console.log(this.editForm5.major)
          console.log(this.editForm5.major.includes('00)'))
          if (!reg.test(this.editForm5.major) || this.editForm5.major.includes('00)')) {
            this.$message({
              message: '专业格式填写错误，请参照示例填写',
              type: 'error'
            })
            return false
          }
          this.editLoading = true
          let para = {
            id: this.editForm5.id,
            unitName: this.editForm5.unitName,
            department: this.editForm5.department,
            post: this.editForm5.post,
            major: this.editForm5.major,
            countBeijing1: this.editForm5.countBeijing1,
            countBeijing2: this.editForm5.countBeijing2,
            countBeijing3: this.editForm5.countBeijing3,
            countBeijing4: this.editForm5.countBeijing4,
            countBeijing5: this.editForm5.countBeijing5,
            count1: this.editForm5.count1,
            count2: this.editForm5.count2,
            count3: this.editForm5.count3,
            count4: this.editForm5.count4,
            count5: this.editForm5.count5,
            unitBatchId: this.unitBatchId,
            unitBeijing: this.unitBeijing5,
            theYear: this.theYear
          }
          this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable5/save`, para).then(response => {
            console.log(response.data.success)
            if (response.data.success === true) {
              this.$message({
                message: '保存成功',
                type: 'success'
              })
              this.editFormVisible5 = false
              this.editLoading = false
              this.getList5()
            } else {
              console.log('保存失败:' + response.data.message)
              this.$message({
                message: '保存失败:' + response.data.message,
                type: 'error'
              })
              this.editLoading = false
            }
          }).catch(error => {
            console.log(error)
            this.$message({
              message: '保存失败:' + error,
              type: 'error'
            })
            this.editLoading = false
          })
        }
      })
    },
    editFormSubmit6 () {
      this.$refs.editForm6.validate((valid) => {
        if (valid) {
          let reg = /^[\u4e00-\u9fa5]+\([\da-zA-Z]+\)(;[\u4e00-\u9fa5]+\([\da-zA-Z]+\))*$/g
          this.editForm6.major = this.editForm6.major.toString().replace(/（/g, '(').replace(/）/g, ')').replace(/；/g, ';')
          console.log(this.editForm6.major)
          console.log(this.editForm6.major.includes('00)'))
          if (!reg.test(this.editForm6.major) || this.editForm6.major.includes('00)')) {
            this.$message({
              message: '专业格式填写错误，请参照示例填写',
              type: 'error'
            })
            return false
          }
          this.editLoading = true
          let para = {
            id: this.editForm6.id,
            unitName: this.editForm6.unitName,
            department: this.editForm6.department,
            post: this.editForm6.post,
            personCount: this.editForm6.personCount,
            residenceRequirements: this.editForm6.residenceRequirements,
            education: this.editForm6.education,
            major: this.editForm6.major,
            others: this.editForm6.others,
            remark: this.editForm6.remark,
            unitBeijing: this.unitBeijing === 3 ? this.editForm6.unitBeijing : this.unitBeijing,
            unitBatchId: this.unitBatchId,
            theYear: this.theYear
          }
          this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPlanDeclareTable6/save`, para).then(response => {
            console.log(response.data.success)
            if (response.data.success === true) {
              this.$message({
                message: '保存成功',
                type: 'success'
              })
              this.editFormVisible6 = false
              this.editLoading = false
              this.getList5()
            } else {
              console.log('保存失败:' + response.data.message)
              this.$message({
                message: '保存失败:' + response.data.message,
                type: 'error'
              })
              this.editLoading = false
            }
          }).catch(error => {
            console.log(error)
            this.$message({
              message: '保存失败:' + error,
              type: 'error'
            })
            this.editLoading = false
          })
        }
      })
    },
    handleDetail1 (obj, theType, unitBeijing) {
      this.dialogTitle = '修改'
      this.editForm1 = { ...obj }
      this.theType1 = theType
      this.unitBeijing1 = unitBeijing
      this.editFormVisible1 = true
      console.log(this.editForm1)
    },
    handleDetail2 (obj, theType, unitBeijing) {
      this.dialogTitle = '修改'
      this.editForm2.id = obj.id
      this.editForm2.unitName = obj.unitName
      this.editForm2.count1 = obj.count1
      this.editForm2.count2 = obj.count2
      this.editForm2.count3 = obj.count3
      this.editForm2.inPostCount1 = obj.inPostCount1
      this.editForm2.inPostCount2 = obj.inPostCount2
      this.editForm2.inPostCount3 = obj.inPostCount3
      this.editForm2.institutional = []
      this.editForm2.receiveMode = []
      this.editForm2.receiveModeRemark = ''
      this.editForm2.institutional = obj.institutional ? obj.institutional.split('\r\n') : []
      let receiveModeArr = obj.receiveMode ? obj.receiveMode.split('\r\n') : []
      if (receiveModeArr.length !== 0 && receiveModeArr[receiveModeArr.length - 1].includes('其他')) {
        this.editForm2.receiveModeRemark = receiveModeArr[receiveModeArr.length - 1].slice(3)
        receiveModeArr[receiveModeArr.length - 1] = '其他（请注明）'
      }
      this.editForm2.receiveMode = receiveModeArr
      this.editFormVisible2 = true
    },
    handleDetail3 (obj, theType, unitBeijing) {
      this.dialogTitle = '修改'
      this.editForm3 = { ...obj }
      this.unitBeijing3 = unitBeijing
      this.editFormVisible3 = true
    },
    handleDetail4 (obj, theType, unitBeijing) {
      this.dialogTitle = '修改'
      this.editForm4.id = obj.id
      this.editForm4.unitName = obj.unitName
      this.editForm4.receiveYear = obj.receiveYear
      this.editForm4.department = obj.department
      this.editForm4.realName = obj.realName
      this.editForm4.idCardNo = obj.idCardNo
      this.editForm4.post = obj.post
      this.editForm4.school = obj.school
      this.editForm4.major = obj.major
      this.editForm4.inPost = obj.inPost
      this.editForm4.inBeijing = obj.inBeijing
      this.editForm4.remark = obj.remark
      this.editFormVisible4 = true
      this.unitBeijing4 = unitBeijing
    },
    handleDetail5 (obj, theType, unitBeijing) {
      this.dialogTitle = '修改'
      this.editForm5.id = obj.id
      this.editForm5.unitName = obj.unitName
      this.editForm5.department = obj.department
      this.editForm5.post = obj.post
      this.editForm5.major = obj.major
      this.editForm5.countBeijing1 = obj.countBeijing1
      this.editForm5.countBeijing2 = obj.countBeijing2
      this.editForm5.countBeijing3 = obj.countBeijing3
      this.editForm5.countBeijing4 = obj.countBeijing4
      this.editForm5.countBeijing5 = obj.countBeijing5
      this.editForm5.count1 = obj.count1
      this.editForm5.count2 = obj.count2
      this.editForm5.count3 = obj.count3
      this.editForm5.count4 = obj.count4
      this.editForm5.count5 = obj.count5
      this.editFormVisible5 = true
      this.unitBeijing5 = unitBeijing
    },
    handleDetail6 (obj, theType, unitBeijing) {
      this.dialogTitle = '修改'
      this.editForm6.id = obj.id
      this.editForm6.unitName = obj.unitName
      this.editForm6.department = obj.department
      this.editForm6.post = obj.post
      this.editForm6.personCount = obj.personCount
      this.editForm6.residenceRequirements = obj.residenceRequirements
      this.editForm6.education = obj.education
      this.editForm6.major = obj.major
      this.editForm6.others = obj.others
      this.editForm6.remark = obj.remark
      this.editForm6.unitBeijing = obj.unitBeijing
      this.editFormVisible6 = true
    },
    handleAdd1 (theType, unitBeijing) {
      this.dialogTitle = '新增'
      this.editForm1.id = null
      this.editForm1.unitName = ''
      this.editForm1.postNum = 0
      this.editForm1.leaderPostNum = 0
      this.editForm1.personNum = 0
      this.editForm1.leaderPersonNum = 0
      this.editForm1.retireeNum = 0
      this.editForm1.leaderRetireeNum = 0
      this.editForm1.countLastYearBeijing1 = 0
      this.editForm1.countLastYearBeijing2 = 0
      this.editForm1.countLastYearBeijing3 = 0
      this.editForm1.countLastYearBeijing4 = 0
      this.editForm1.countLastYearBeijing5 = 0
      this.editForm1.countLastYear1 = 0
      this.editForm1.countLastYear2 = 0
      this.editForm1.countLastYear3 = 0
      this.editForm1.countLastYear4 = 0
      this.editForm1.countLastYear5 = 0
      this.editForm1.countBeijing1 = 0
      this.editForm1.countBeijing2 = 0
      this.editForm1.countBeijing3 = 0
      this.editForm1.countBeijing4 = 0
      this.editForm1.countBeijing5 = 0
      this.editForm1.count1 = 0
      this.editForm1.count2 = 0
      this.editForm1.count3 = 0
      this.editForm1.count4 = 0
      this.editForm1.count5 = 0
      this.editForm1.personCount = 0
      this.theType1 = theType
      this.unitBeijing1 = unitBeijing
      this.editFormVisible1 = true
    },
    handleAdd2 (theType, unitBeijing) {
      this.dialogTitle = '新增'
      this.editForm2.id = null
      this.editForm2.unitName = ''
      this.editForm2.count1 = 0
      this.editForm2.count2 = 0
      this.editForm2.count3 = 0
      this.editForm2.inPostCount1 = 0
      this.editForm2.inPostCount2 = 0
      this.editForm2.inPostCount3 = 0
      this.editForm2.institutional = []
      this.editForm2.receiveMode = []
      this.editForm2.receiveModeRemark = ''
      this.editFormVisible2 = true
    },
    handleAdd3 (theType, unitBeijing) {
      this.dialogTitle = '新增'
      this.editForm3.id = null
      this.editForm3.unitName = ''
      this.editForm3.count111 = 0
      this.editForm3.count112 = 0
      this.editForm3.count113 = 0
      this.editForm3.count114 = 0
      this.editForm3.count115 = 0
      this.editForm3.count121 = 0
      this.editForm3.count122 = 0
      this.editForm3.count123 = 0
      this.editForm3.count124 = 0
      this.editForm3.count125 = 0
      this.editForm3.count211 = 0
      this.editForm3.count212 = 0
      this.editForm3.count213 = 0
      this.editForm3.count214 = 0
      this.editForm3.count215 = 0
      this.editForm3.count221 = 0
      this.editForm3.count222 = 0
      this.editForm3.count223 = 0
      this.editForm3.count224 = 0
      this.editForm3.count225 = 0
      this.editForm3.count311 = 0
      this.editForm3.count312 = 0
      this.editForm3.count313 = 0
      this.editForm3.count314 = 0
      this.editForm3.count315 = 0
      this.editForm3.count321 = 0
      this.editForm3.count322 = 0
      this.editForm3.count323 = 0
      this.editForm3.count324 = 0
      this.editForm3.count325 = 0
      this.unitBeijing3 = unitBeijing
      this.editFormVisible3 = true
    },
    handleAdd4 (theType, unitBeijing) {
      this.dialogTitle = '新增'
      this.editForm4.id = null
      this.editForm4.unitName = ''
      this.editForm4.receiveYear = ''
      this.editForm4.department = ''
      this.editForm4.realName = ''
      this.editForm4.idCardNo = ''
      this.editForm4.post = ''
      this.editForm4.school = ''
      this.editForm4.major = ''
      this.editForm4.inPost = null
      this.editForm4.inBeijing = null
      this.editForm4.remark = ''
      this.unitBeijing4 = unitBeijing
      this.editFormVisible4 = true
    },
    handleAdd5 (theType, unitBeijing) {
      this.dialogTitle = '新增'
      this.editForm5.id = null
      this.editForm5.unitName = this.unitName
      this.unitBeijing5 = unitBeijing
      this.editForm5.department = ''
      this.editForm5.post = ''
      this.editForm5.major = ''
      this.editForm5.countBeijing1 = 0
      this.editForm5.countBeijing2 = 0
      this.editForm5.countBeijing3 = 0
      this.editForm5.countBeijing4 = 0
      this.editForm5.countBeijing5 = 0
      this.editForm5.count1 = 0
      this.editForm5.count2 = 0
      this.editForm5.count3 = 0
      this.editForm5.count4 = 0
      this.editForm5.count5 = 0
      this.editFormVisible5 = true
    },
    handleAdd6 (theType, unitBeijing) {
      this.dialogTitle = '新增'
      this.editForm6.id = null
      this.editForm6.unitName = this.unitName
      this.editForm6.department = ''
      this.editForm6.post = ''
      this.editForm6.personCount = 0
      this.editForm6.residenceRequirements = ''
      this.editForm6.education = ''
      this.editForm6.major = ''
      this.editForm6.others = ''
      this.editForm6.remark = ''
      this.editForm6.unitBeijing = ''
      this.editFormVisible6 = true
    },
    getList1 () {
      let tableName = 'recruitBusPlanDeclareTable1'
      if (this.type !== 2) {
        this.getListCommon(tableName, 1, 1, 'list1_1')
        this.getListCommon(tableName, 1, 2, 'list1_2')
      }
      if (this.type !== 1) {
        this.getListCommon(tableName, 2, 1, 'list1_3')
        this.getListCommon(tableName, 2, 2, 'list1_4')
      }
    },
    getList2 () {
      let tableName = 'recruitBusPlanDeclareTable2'
      this.getListCommon(tableName, null, null, 'list2')
    },
    getList3 () {
      let tableName = 'recruitBusPlanDeclareTable3'
      this.getListCommon(tableName, null, 1, 'list3_1')
      this.getListCommon(tableName, null, 2, 'list3_2')
    },
    getList4 () {
      let tableName = 'recruitBusPlanDeclareTable4'
      this.getListCommon(tableName, null, 1, 'list4_1')
      this.getListCommon(tableName, null, 2, 'list4_2')
    },
    getList5 () {
      this.getListCommon2('recruitBusPlanDeclareTable5', null, 1, 'list5_1')
      this.getListCommon2('recruitBusPlanDeclareTable5', null, 2, 'list5_2')
      this.getListCommon2('recruitBusPlanDeclareTable6', null, null, 'list6')
    },
    getList6 () {
    },
    getListCommon (tableName, type, beijing, objName, selectedId) {
      this.listLoading = true
      let para = {
        theYear: this.theYear,
        unitId: this.unitId,
        theType: type,
        unitBeijing: beijing
      }
      this.$http.get(this.$http.defaults.recruitAPI + 'api/' + tableName + '/getTablesJson?' + qs.stringify(para)).then(response => {
        this.listLoading = false
        if (response.data.success === true) {
          // console.log(response.data.result)
          this[objName] = response.data.result
          // this[objName] = tableName === 'recruitBusPlanDeclareTable4' ? response.data.result : (response.data.result ? [response.data.result] : [])
          if (selectedId) {
            this.toggleSelection(objName, selectedId)
          }
          this.getMaxRecord()
        } else {
          console.log('获取数据失败:' + response.data.message)
          this.$message({
            message: '获取数据失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '网络获取失败:' + error,
          type: 'error'
        })
        this.listLoading = false
      })
    },
    toggleSelection (objName, id) {
      let multipleTable = 'multipleTable1'
      if (objName === 'list5_1') {
        multipleTable = 'multipleTable1'
      } else if (objName === 'list5_2') {
        multipleTable = 'multipleTable2'
      } else {
        multipleTable = 'multipleTable3'
      }
      if (objName === 'list1_1') {
        multipleTable = 'multipleTable4'
      } else if (objName === 'list1_2') {
        multipleTable = 'multipleTable5'
      } else if (objName === 'list1_3') {
        multipleTable = 'multipleTable6'
      } else if (objName === 'list1_4') {
        multipleTable = 'multipleTable7'
      }
      if (objName === 'list2') {
        multipleTable = 'multipleTable8'
      }
      if (objName === 'list3_1') {
        multipleTable = 'multipleTable9'
      } else if (objName === 'list3_2') {
        multipleTable = 'multipleTable10'
      }
      if (objName === 'list4_1') {
        multipleTable = 'multipleTable11'
      } else if (objName === 'list4_2') {
        multipleTable = 'multipleTable12'
      }
      this.$nextTick(() => {
        if (id) {
          let newrow = this[objName].find(item => item.id === id)
          console.log(newrow)
          this.$refs[multipleTable].toggleRowSelection(newrow)
        } else {
          this.$refs[multipleTable].clearSelection()
        }
      })
    },
    getListCommon2 (tableName, type, beijing, objName, selectedId) {
      this.listLoading = true
      let para = {
        pageSize: 1000,
        pageNum: 1,
        theYear: this.theYear,
        unitId: this.unitId,
        theType: type,
        unitBeijing: beijing
      }
      this.$http.post(this.$http.defaults.recruitAPI + 'api/' + tableName + '/queryByPage', para).then(response => {
        this.listLoading = false
        if (response.data.success === true) {
          console.log(response.data.result.records)
          this[objName] = response.data.result.records
          this[objName].forEach((item, index, arr) => {
            arr[index].sum1 = item.lastYearBeijingBachelorCount + item.lastYearBeijingPostgraduateCount
            arr[index].sum2 = item.lastYearBachelorCount + item.lastYearPostgraduateCount + item.thisYearDoctorCount
            arr[index].sum3 = item.thisYearBeijingBachelorCount + item.thisYearBeijingPostgraduateCount
            arr[index].sum4 = item.thisYearBachelorCount + item.thisYearPostgraduateCount
            arr[index].prop1 = (arr[index].sum1 + arr[index].sum2) ? (((arr[index].sum1 / (arr[index].sum1 + arr[index].sum2)) * 100).toFixed(1) + '%') : '0%'
            arr[index].prop2 = (arr[index].sum3 + arr[index].sum4) ? (((arr[index].sum3 / (arr[index].sum3 + arr[index].sum4)) * 100).toFixed(1) + '%') : '0%'
            arr[index].sum3_1_1 = item.settleUndergraduateCount1 + item.settleMasterCount1 + item.settleDoctorCount1
            arr[index].sum3_2_1 = item.settleUndergraduateCount2 + item.settleMasterCount2 + item.settleDoctorCount2
            arr[index].sum3_3_1 = item.settleUndergraduateCount3 + item.settleMasterCount3 + item.settleDoctorCount3
            arr[index].sum3_1_2 = item.inPostUndergraduateCount1 + item.inPostMasterCount1 + item.inPostDoctorCount1
            arr[index].sum3_2_2 = item.inPostUndergraduateCount2 + item.inPostMasterCount2 + item.inPostDoctorCount2
            arr[index].sum3_3_2 = item.inPostUndergraduateCount3 + item.inPostMasterCount3 + item.inPostDoctorCount3
            arr[index].prop3_1 = (arr[index].sum3_1_1) ? (((arr[index].sum3_1_2 / arr[index].sum3_1_1) * 100).toFixed(1) + '%') : '0%'
            arr[index].prop3_2 = (arr[index].sum3_2_1) ? (((arr[index].sum3_2_2 / arr[index].sum3_2_1) * 100).toFixed(1) + '%') : '0%'
            arr[index].prop3_3 = (arr[index].sum3_3_1) ? (((arr[index].sum3_3_2 / arr[index].sum3_3_1) * 100).toFixed(1) + '%') : '0%'
            arr[index].sum5_1 = item.countBeijing1 + item.countBeijing2 + item.countBeijing3 + item.countBeijing4 + item.countBeijing5
            arr[index].sum5_2 = item.count1 + item.count2 + item.count3 + item.count4 + item.count5
          })
          if (selectedId) {
            this.toggleSelection(objName, selectedId)
          }
        } else {
          console.log('获取数据失败:' + response.data.message)
          this.$message({
            message: '获取数据失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '网络获取失败:' + error,
          type: 'error'
        })
        this.listLoading = false
      })
    },
    handleDel1 (id, obj) {
      let tableName = 'recruitBusPlanDeclareTable1'
      this.delCommon(tableName, id, obj === 1 ? 'multipleSelection4' : 'multipleSelection5')
    },
    handleDel2 (id) {
      let tableName = 'recruitBusPlanDeclareTable2'
      this.delCommon(tableName, id, 'multipleSelection8')
    },
    handleDel3 (id, obj) {
      let tableName = 'recruitBusPlanDeclareTable3'
      this.delCommon(tableName, id, obj === 1 ? 'multipleSelection9' : 'multipleSelection10')
    },
    handleDel4 (id, obj) {
      let tableName = 'recruitBusPlanDeclareTable4'
      this.delCommon(tableName, id, obj === 1 ? 'multipleSelection11' : 'multipleSelection12')
    },
    handleDel5 (id, obj) {
      let tableName = 'recruitBusPlanDeclareTable5'
      this.delCommon(tableName, id, obj === 1 ? 'multipleSelection1' : 'multipleSelection2')
    },
    handleDel6 (id) {
      let tableName = 'recruitBusPlanDeclareTable6'
      this.delCommon(tableName, id, 'multipleSelection3')
    },
    handleDel7 (id, obj) {
      let tableName = 'recruitBusPlanDeclareTable1'
      this.delCommon(tableName, id, obj === 1 ? 'multipleSelection6' : 'multipleSelection7')
    },
    delCommon (tableName, id, obj) {
      if (!id && this[obj].length === 0) {
        // 批量删除至少选择1项
        this.$message({
          message: '至少选择一条记录',
          type: 'error'
        })
        return false
      }
      this.$confirm('确认删除该记录吗?', '提示', {
        type: 'warning'
      }).then(() => {
        let para = {}
        if (id) {
          para = {ids: [id]}
        } else {
          para = {ids: this[obj].map(item => item.id)}
        }
        this.listLoading = true
        this.$http.post(this.$http.defaults.recruitAPI + 'api/' + tableName + '/remove', para).then(response => {
          if (response.data.success === true) {
            this.addLoading = false
            this.$message({
              message: '删除成功',
              type: 'success'
            })
          } else {
            console.log('删除失败:' + response.data.message)
            this.$message({
              message: '删除失败:' + response.data.message,
              type: 'error'
            })
          }
          switch (tableName) {
            case 'recruitBusPlanDeclareTable1':
              this.getList1()
              break
            case 'recruitBusPlanDeclareTable2':
              this.getList2()
              break
            case 'recruitBusPlanDeclareTable3':
              this.getList3()
              break
            case 'recruitBusPlanDeclareTable4':
              this.getList4()
              break
            case 'recruitBusPlanDeclareTable5':
              this.getList5()
              break
            case 'recruitBusPlanDeclareTable6':
              this.getList5()
              break
          }
        })
          .catch(error => {
            console.log(error)
            this.$message({
              message: '删除失败:' + error,
              type: 'error'
            })
          })
      })
    },
    beforeUpload (file) {
      console.log('文件类型')
      console.log(file.name)
      const isFormat = file.name.indexOf('.docx') > 0 || file.name.indexOf('.doc') > 0 || file.name.indexOf('.pdf') > 0 || file.name.indexOf('.DOCX') > 0 || file.name.indexOf('.DOC') > 0 || file.name.indexOf('.PDF') > 0 || file.name.indexOf('.wps') > 0 || file.name.indexOf('.WPS') > 0
      const isLt500M = file.size / 1024 / 1024 < 60
      if (!isLt500M) {
        this.$message.error('单个附件不能超过60M!')
      } else {
        this.saveloading = true
      }
      if (!isFormat) {
        this.$message.error('附件格式必须为word、pdf、wps!')
      } else {
        this.saveloading = true
      }
      return isFormat && isLt500M
    },
    async handleUploadSucc1 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare', 'files1')
    },
    async handleUploadSucc1_2 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare_table1_2', 'files1_2')
    },
    async handleUploadSucc2 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare_table2', 'files2')
    },
    async handleUploadSucc3 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare_table3', 'files3')
    },
    async handleUploadSucc4 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare_table4', 'files4')
    },
    async handleUploadSucc5 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare_table5', 'files5')
    },
    async handleUploadSucc6 (response, file, fileList) {
      this.uploadSuccCommon(response, file, fileList, 'bus_plan_declare_table6', 'files6')
    },
    uploadSuccCommon (response, file, fileList, stepName, objName) {
      if (response.success) {
        let para = {
          id: response.result[0].id,
          businessStep: stepName,
          theYear: this.theYear
        }
        this.$http.post(this.$http.defaults.recruitAPI + `api/recruitGenFileInfo/save`, para).then(res => {
          this.saveloading = false
          if (res.data.success === true) {
            this.$message({
              message: '上传成功！',
              type: 'success'
            })
            this.getFileList(stepName, objName)
          } else {
            console.log('上传失败:' + res.data.message)
            this.$message({
              message: '上传失败:' + res.data.message,
              type: 'error'
            })
          }
        })
          .catch(error => {
            this.saveloading = false
            console.log(error)
            this.$message({
              message: '上传失败:' + error,
              type: 'error'
            })
          })
      } else {
        this.saveloading = false
        this.$message({
          message: '上传失败:' + response.message,
          type: 'error'
        })
      }
    },
    beforeRemove (file, stepName, objName) {
      this.$confirm('确定删除' + file.fileName + '.' + file.fileType + '？', '提示', {
        type: 'warning'
      }).then(() => {
        this.handleRemove(file.id, stepName, objName)
      })
    },
    handleRemove (id, stepName, objName) {
      const url = 'api/recruitGenFileInfo/remove?id=' + id
      this.$http.get(this.$http.defaults.recruitAPI + url).then(res => {
        console.log('删除成功:', res)
        if (res.data.success === true) {
          this.getFileList(stepName, objName)
          this.$message({
            message: '删除成功！',
            type: 'success'
          })
        }
      })
    },
    uploadError (err) {
      this.saveloading = false
      console.log(err)
      this.$message({
        message: '上传失败:' + err,
        type: 'error'
      })
    },
    download (id) {
      window.open(this.$http.defaults.baseURL + this.$http.defaults.recruitAPI + 'api/recruitGenFileInfo/download?id=' + id)
    },
    getFileList (stepName, objName) {
      this.fileListLoading = true
      let para = {
        unitId: this.unitId,
        businessStep: stepName,
        theYear: this.theYear
      }
      this.$http.post(this.$http.defaults.recruitAPI + `api/recruitGenFileInfo/getFiles`, para).then(response => {
        this.fileListLoading = false
        if (response.data.success === true) {
          this[objName] = response.data.result
        } else {
          console.log('获取失败:' + response.data.message)
          this.$message({
            message: '获取失败:' + response.data.message,
            type: 'error'
          })
        }
      }).catch(error => {
        console.log(error)
        this.$message({
          message: '网络获取失败:' + error,
          type: 'error'
        })
        this.fileListLoading = false
      })
    },
    getNum (i) {
      return i < 10 ? '0' + i : i
    },
    setState (state) {
      // if (this.list1.length === 0 && this.list2.length === 0 && this.list3.length === 0 && this.files.length === 0) {
      //   this.$message({
      //     message: '操作失败:您未填写任何信息',
      //     type: 'error'
      //   })
      //   return false
      // }
      let str = ''
      if (state !== 1) {
        str = '确认退回吗?'
      } else if (state === 1 && this.recordObj.table11Flag === 1 && this.recordObj.table12Flag === 1 && this.recordObj.table21Flag === 1 && this.recordObj.table31Flag === 1 && this.recordObj.table32Flag === 1 && this.recordObj.table41Flag === 1 && this.recordObj.table42Flag === 1) {
        str = '确认提交吗?'
      } else {
        str = '填报数据与历年招聘人员信息库不一致，确认提交吗?'
      }
      this.$confirm(str, '提示', {
        type: 'warning'
      }).then(() => {
        let para = {
          id: this.state === 0 ? null : this.stepBatchId,
          state: state,
          theYear: this.theYear,
          step: 'bus_plan_declare'
        }
        if (state === 5) {
          para.remarks = this.backForm.remark
        }
        this.btnLoading = true
        this.$http.post(this.$http.defaults.recruitAPI + `api/recruitBusPostStepBatch/save`, para).then(response => {
          this.btnLoading = false
          if (response.data.success === true) {
            this.$message({
              message: '操作成功',
              type: 'success'
            })
            this.backFormVisible = false
            this.$emit('getDetails')
          } else {
            console.log('操作失败:' + response.data.message)
            this.$message({
              message: '操作失败:' + response.data.message,
              type: 'error'
            })
          }
        }).catch(error => {
          this.btnLoading = false
          console.log(error)
          this.$message({
            message: '操作失败:' + error,
            type: 'error'
          })
        })
      })
    },
    tabClick () {
      switch (this.activeName) {
        case '1':
          this.getRemarksByYear()
          this.getList1()
          break
        case '2':
          this.getRemarksByYear()
          this.getList1()
          break
        case '3':
          this.getList2()
          break
        case '4':
          this.getList3()
          break
        case '5':
          this.getList4()
          break
        case '6':
          this.getList5()
          break
        case '7':
          this.getList6()
          break
      }
    }
  },
  mounted () {
  }
}
</script>
<style scoped>
  .mytable{
    border-top: 1px solid #74a6cc;
    border-left: 1px solid #74a6cc;
    margin:0 10px 10px;
    width: calc(100% - 20px);
  }
  .mytable th{
    padding: 10px;
    border-right: 1px solid #74a6cc;
    border-bottom: 1px solid #74a6cc;
    vertical-align: top;
    line-height: 150%;
    background: #FAFAFA;
    width:200px;
    text-align:right;
  }
  .mytable td{
    padding: 10px;
    border-right: 1px solid #74a6cc;
    border-bottom: 1px solid #74a6cc;
    vertical-align: top;
    line-height: 150%;
  }
</style>
<style>
#recruitTableJH .el-table{
  border:1px solid #95B8E7 !important;
}
#recruitTableJH .el-table td,
#recruitTableJH .el-table th{
  border-right:1px solid #95B8E7 !important;
  border-bottom:1px solid #95B8E7 !important;
}
#recruitTableJH .el-table th.th-l-1{
  border-bottom:0px solid #95B8E7 !important;
}
#recruitTableJH .el-table th.th-l-2{
  border-top:0px solid #95B8E7 !important;
}
#recruitTableJH .el-table th.th-l-3{
  border-top:1px solid #95B8E7 !important;
}
</style>
